PERFORCE change 95361 for review
John Birrell
jb at FreeBSD.org
Sat Apr 15 22:49:00 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95361
Change 95361 by jb at jb_freebsd2 on 2006/04/15 22:48:06
SysV -> BSD signal handling. Only include Solaris headers on Solaris.
Affected files ...
.. //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c#2 edit
Differences ...
==== //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c#2 (text) ====
@@ -152,9 +152,11 @@
int keep_stabs = 0;
int c;
+#if defined(sun)
sighold(SIGINT);
sighold(SIGQUIT);
sighold(SIGTERM);
+#endif
progname = basename(argv[0]);
@@ -216,9 +218,15 @@
*/
set_terminate_cleanup(terminate_cleanup);
+#if defined(sun)
sigset(SIGINT, handle_sig);
sigset(SIGQUIT, handle_sig);
sigset(SIGTERM, handle_sig);
+#else
+ signal(SIGINT, handle_sig);
+ signal(SIGQUIT, handle_sig);
+ signal(SIGTERM, handle_sig);
+#endif
filetd = tdata_new();
More information about the p4-projects
mailing list