comparison src/client.c @ 112:dd2fbc88601d noffle

[svn] Remove SA_INTERRUPT flag.
author bears
date Sat, 24 Jun 2000 21:29:52 +0100
parents f782184db8bc
children 05f50c1761d9
comparison
equal deleted inserted replaced
111:6f681d41734c 112:dd2fbc88601d
1 /* 1 /*
2 client.c 2 client.c
3 3
4 $Id: client.c 142 2000-06-13 06:31:43Z bears $ 4 $Id: client.c 156 2000-06-24 20:29:52Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
238 struct sigaction act, oldAct; 238 struct sigaction act, oldAct;
239 239
240 act.sa_handler = handler; 240 act.sa_handler = handler;
241 sigemptyset( &act.sa_mask ); 241 sigemptyset( &act.sa_mask );
242 act.sa_flags = 0; 242 act.sa_flags = 0;
243 if ( sig == SIGALRM ) 243 if ( sig != SIGALRM )
244 act.sa_flags |= SA_INTERRUPT;
245 else
246 act.sa_flags |= SA_RESTART; 244 act.sa_flags |= SA_RESTART;
247 if ( sigaction( sig, &act, &oldAct ) < 0 ) 245 if ( sigaction( sig, &act, &oldAct ) < 0 )
248 return SIG_ERR; 246 return SIG_ERR;
249 return oldAct.sa_handler; 247 return oldAct.sa_handler;
250 } 248 }