Use SIG_ERR to indicate tst_sig's default handler, to allow (and not clash with) SIG_DFL: SIG_DFL happens to be 0 as well as DEF_HANDLER - this means you cannot use SIG_DFL as tst_sig argument, eg. if you want to reset the signal handling in tests' children to normal. This patch changes DEF_HANDLER to be SIG_ERR, as this value cannot be normally used with tst_sig(), so they cannot clash. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
1 file changed