commit | 40bc6aae914ab8ebd6b80059912929d1b767e948 | [log] [tgz] |
---|---|---|
author | subrata_modak <subrata_modak> | Sun Sep 27 17:46:05 2009 +0000 |
committer | subrata_modak <subrata_modak> | Sun Sep 27 17:46:05 2009 +0000 |
tree | a3eb4e7a657762741593959945dd042d0a727c48 | |
parent | 447cb96ff3256ee7688e578430c6e3175bf17b94 [diff] |
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>.