[PATCH] BZ #14782 system async cancellation
Andreas Schwab
schwab@linux-m68k.org
Thu Nov 1 07:31:00 GMT 2012
Rich Felker <dalias@aerifal.cx> writes:
> -/* We have to and actually can handle cancelable system(). The big
> - problem: we have to kill the child process if necessary. To do
> - this a cleanup handler has to be registered and is has to be able
> - to find the PID of the child. The main problem is to reliable have
> - the PID when needed. It is not necessary for the parent thread to
> - return. It might still be in the kernel when the cancellation
> - request comes. Therefore we have to use the clone() calls ability
> - to have the kernel write the PID into the user-level variable. */
> -#ifndef FORK
> -# define FORK() \
> - INLINE_SYSCALL (clone, 3, CLONE_PARENT_SETTID | SIGCHLD, 0, &pid)
> -#endif
What about the other uses?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list