Date: Sat, 15 Apr 2006 22:48:59 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95361 for review Message-ID: <200604152248.k3FMmxKB033665@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95361 Change 95361 by jb@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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604152248.k3FMmxKB033665>