[PATCH] daemon: block SIGHUP on MMU

Mike Frysinger vapier at gentoo.org
Wed Nov 16 21:41:32 UTC 2011


On Wednesday 16 November 2011 15:54:02 Bernhard Reutner-Fischer wrote:
> +#ifdef __ARCH_USE_MMU__
> +	/* Upon _exit of the parent we may get a HUP that we do not want.  */

do we have a simple test case ?  sounds like glibc would have the same bug.

> +	fd = sigprocmask(SIG_BLOCK, &new_set, &old_set);
> +#else
> +	sigprocmask(SIG_BLOCK, &new_set, &old_set);
> +#endif
> ...
> +#ifdef __ARCH_USE_MMU__
> +	if (fd != -1)
> +#endif
> +		sigprocmask(SIG_SETMASK, &old_set, NULL);

probably is fine to let NOMMU do the same thing as MMU with the save/restore
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20111116/cedd4d71/attachment.asc>


More information about the uClibc mailing list