URI: 
       tlib9: turn certain signals off by default - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit d35c1bb294f734a69813ecd305a0906025b7e9fa
   DIR parent a58a827f2ae0d989102dc4d8c113b9282ef177b3
  HTML Author: Russ Cox <rsc@swtch.com>
       Date:   Sat, 12 Jul 2008 07:35:20 -0700
       
       lib9: turn certain signals off by default
       
       Diffstat:
         M src/lib9/notify.c                   |      11 ++++++-----
       
       1 file changed, 6 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/src/lib9/notify.c b/src/lib9/notify.c
       t@@ -37,7 +37,8 @@ struct Sig
        enum
        {
                Restart = 1<<0,
       -        Ignore = 1<<1
       +        Ignore = 1<<1,
       +        NoNotify = 1<<2,
        };
        
        static Sig sigs[] = {
       t@@ -58,7 +59,7 @@ static Sig sigs[] = {
                SIGPIPE,                Ignore,
                SIGALRM,                0,
                SIGTERM,                0,
       -        SIGTSTP,                Restart|Ignore,
       +        SIGTSTP,                Restart|Ignore|NoNotify,
        /*        SIGTTIN,                Restart|Ignore, */
        /*        SIGTTOU,                Restart|Ignore, */
                SIGXCPU,                0,
       t@@ -67,10 +68,10 @@ static Sig sigs[] = {
                SIGUSR1,                0,
                SIGUSR2,                0,
        #ifdef SIGWINCH
       -        SIGWINCH,        Restart|Ignore,
       +        SIGWINCH,        Restart|Ignore|NoNotify,
        #endif
        #ifdef SIGINFO
       -        SIGINFO,                Restart|Ignore,
       +        SIGINFO,                Restart|Ignore|NoNotify,
        #endif
        };
        
       t@@ -266,7 +267,7 @@ noteinit(void)
                         */
                        if(handler(sig->sig) != SIG_DFL)
                                continue;
       -                notifyseton(sig->sig, 1);
       +                notifyseton(sig->sig, !(sig->flags&NoNotify));
                }
        }