Re: Wild thangs, was: sendmail fails to deliver mail with attachments in /var/spool/mqueue

From: Andrew Morton (andrewm@uow.edu.au)
Date: Fri Nov 10 2000 - 22:09:37 EST


Andrew Morton wrote:
>
> "Jeff V. Merkey" wrote:
> >
> > They're not modprobes, they're misnamed processes sleeping from NWFS.
> > I got the fix from someone so now they display their proper names.
> > top displays the names correctly, ps does not. Several people have
> > verified this problem, and all you are saying is that your servers
> > are never heavily loaded for long periods of time, say 200 hours
> > at a stretch of consatnt ftp traffic?
>
> Kernel threads? Do this:
>
> strcpy(current->comm, "threadname"); /* 16 char array!! */
> current->mm->arg_start = current->mm->arg_end = 0; /* black magic */
>
> and `ps' should be happy.

Even better, use sched.c:daemonize().
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 21:00:19 EST