Changeset 85ab8c in git
- Timestamp:
- Sep 13, 2010, 1:54:30 PM (13 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- c292b2f02aae398d9441027fcf6031ee977365e1
- Parents:
- e1552a7c374c11d8834e99a831c6404fe8a0c80d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
re1552a r85ab8c 72 72 #endif 73 73 74 si_link pipeLastLink=NULL; 75 76 void sig_pipe_hdl(int sig) 77 { 78 if (pipeLastLink!=NULL) 79 { 80 slClose(pipeLastLink); 81 pipeLastLink=NULL; 82 WerrorS("pipe failed"); 83 } 84 } 85 74 86 /*---------------------------------------------------------------------* 75 87 * File scope Variables (Variables share by several functions in … … 105 117 **/ 106 118 /*---------------------------------------------------------------------*/ 107 si_hdl_typ si_set_signal ( 108 int sig, 109 si_hdl_typ signal_handler 110 ) 119 si_hdl_typ si_set_signal ( int sig, si_hdl_typ signal_handler) 111 120 { 112 121 si_hdl_typ retval=signal (sig, (si_hdl_typ)signal_handler); … … 221 230 } 222 231 223 si_link pipeLastLink=NULL;224 225 void sig_pipe_hdl(int sig)226 {227 if (pipeLastLink!=NULL)228 {229 slClose(pipeLastLink);230 pipeLastLink=NULL;231 WerrorS("pipe failed");232 }233 }234 235 232 /*2 236 233 * init signal handlers, linux/i386 version … … 307 304 si_set_signal(SIGINT ,sigint_handler); 308 305 si_set_signal(SIGCHLD, (void (*)(int))SIG_IGN); 306 si_set_signal(SIGPIPE, (si_hdl_typ)sig_pipe_hdl); 309 307 } 310 308 #else … … 369 367 si_set_signal(SIGCHLD, (void (*)(int))SIG_IGN); 370 368 #endif 369 si_set_signal(SIGPIPE, (si_hdl_typ)sig_pipe_hdl); 371 370 } 372 371 #endif
Note: See TracChangeset
for help on using the changeset viewer.