lkml.org 
[lkml]   [2001]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Unified power management userspace policy
John Fremlin wrote:
>
> Hi!
>
> Andrew Morton <andrewm@uow.edu.au> writes:
>
> > Could you please use call_usermodehelper() in this patch
> > rather than exec_usermodehelper()? I want to kill
> > exec_usermodehelper() sometime.
>
> The reason I used exec_usermodehelper is that I wanted to waitpid on
> the process to see how it exited. Am I still allowed to do that if it
> runs as a child of keventd?

Oh foo. I missed that.

In the patch-which-didn't-make-it, yes, it can be called
synchronously. Or you can be called back with the exit
code when the subprocess exits. It does all the waitpid
stuff, the signal management, handles chrootedness, etc.
But that's vapourware now.

In the current implementation of call_usermodehelper(),
it looks like the commentary is incorrect - it returns
a negative error code or the subprocess's pid, but you
can't wait on that because it's parented by keventd.

Sorry for the noise - stick with what you have now.

-
-
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 13:22    [W:0.030 / U:2.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site