GNOME Bugzilla – Bug 651725
gmain: Cleanups and a new test case
Last modified: 2011-06-03 15:55:18 UTC
I was briefly looking at signalfd() last night, and there are some tricky things. This cleanup patch and test case resulted as initial steps.
Created attachment 189098 [details] [review] gmain: Clean up SIGCHLD handling Unify it more with the rest of the signal handling code. There's no reason not to specify SA_RESTART and SA_NOCLDSTOP for flags always, so just do it. Remove unnecessary initialization, and push the internal API towards just ensure_unix_signal_handler_installed_unlocked().
Created attachment 189099 [details] [review] gmain: Consolidate UNIX signal init state handling For a future signalfd() patch, it will be easier to handle if we don't separate initialization from watching for a particular signal.
Created attachment 189100 [details] [review] spawn-multithreaded: New test case We didn't have any coverage of threads spawning processes, which we should definitely support.
Review of attachment 189098 [details] [review]: Looks fine to me.
Review of attachment 189099 [details] [review]: Looks fine to me.
Review of attachment 189100 [details] [review]: Yay, tests ! But whats a gecho ? I think that should either be an echo, or a gecko...
Attachment 189098 [details] pushed as 6ea274b - gmain: Clean up SIGCHLD handling Attachment 189099 [details] pushed as c34a6a6 - gmain: Consolidate UNIX signal init state handling Attachment 189100 [details] pushed as d51198b - spawn-multithreaded: New test case