check for SA_SIGINFO

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@497 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2002-05-28 16:23:53 +00:00
parent f1eddd7966
commit 85f1080071
4 changed files with 86 additions and 0 deletions

View File

@@ -1028,7 +1028,11 @@ my_signal_info(int sig, void (*handler)(int))
sigact.sa_handler = handler;
sigemptyset(&sigact.sa_mask);
#if HAVE_SIGINFO
sigact.sa_flags = SA_SIGINFO;
#else
sigact.sa_flags = 0;
#endif
sigaction(sig,&sigact,NULL);
}