comparison svr-chansession.c @ 656:67fbba2c2a85

- Make sure sa_mask is set
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 Feb 2012 22:57:19 +0800
parents 306a907d23e7
children 16af1decaf4c
comparison
equal deleted inserted replaced
655:76e780c74a5e 656:67fbba2c2a85
135 } 135 }
136 } 136 }
137 137
138 sa_chld.sa_handler = sesssigchild_handler; 138 sa_chld.sa_handler = sesssigchild_handler;
139 sa_chld.sa_flags = SA_NOCLDSTOP; 139 sa_chld.sa_flags = SA_NOCLDSTOP;
140 sa_chld.sa_mask = 0;
140 sigaction(SIGCHLD, &sa_chld, NULL); 141 sigaction(SIGCHLD, &sa_chld, NULL);
141 TRACE(("leave sigchld handler")) 142 TRACE(("leave sigchld handler"))
142 } 143 }
143 144
144 /* send the exit status or the signal causing termination for a session */ 145 /* send the exit status or the signal causing termination for a session */