lkml.org 
[lkml]   [2000]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Wild thangs, was: sendmail fails to deliver mail with attachments in /var/spool/mqueue
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/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.163 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site