lkml.org 
[lkml]   [1996]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Take II] On SIGCHLD signal semantics
> If POSIX_SIGCHLD is #define'd in kernel/exit.c, the kernel will produce
> warnings when an application makes a wait* system call with a SIGCHLD signal
> handler it inherited from its parent, or when a child process exits while its
> parent process is still using an inherited SIGCHLD signal handler of SIG_IGN.
> These warnings are only intended to highlight the problem, and do not, by
> themselves, solve it. The warnings are:

Why use compile-time macros? The SIGCHLD behavior should be run-time
configurable using a sysctl for maximum flexibility. (If I want to
switch behaviors, then I would have to recompile my kernel. But if I
had a sysctl, I only have to change do a "echo 1 >
/proc/sys/kernel/sigchld-behavior" or something similar.)

Tom


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