Re: Change signal mask after vfork/clone system call

From: Alan Cox
Date: Thu Nov 04 2010 - 12:29:59 EST


> Now, I could unmask signals for the thread calling vfork, but it seems not a signal-safe solution to me because signals may arrive to this thread until I reestablish the mask. pthread_atfork call comes to rescue to address such issues for fork, but there seems to be nothing for vfork call.

Oh you are wrapping buggy apps ?

vfork
exec a tiny app which fixes the signals and execs the proper app

or fix the apps being run...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/