FACT++  1.0
void ignore_sigpipe ( )

Definition at line 348 of file dim_thr_old.c.

References pipe_sig_handler().

Referenced by dim_init().

349 {
350 
351  struct sigaction sig_info;
352  sigset_t set;
353  void pipe_sig_handler();
354 
355  if( sigaction(SIGPIPE, 0, &sig_info) < 0 )
356  {
357  perror( "sigaction(SIGPIPE)" );
358  exit(1);
359  }
360  if(sig_info.sa_handler)
361  {
362 /*
363  printf("DIM ignore_sigpipe() - Handler already defined %08X\n", sig_info.sa_handler);
364 */
365  return;
366  }
367  sigemptyset(&set);
368  sig_info.sa_handler = pipe_sig_handler;
369  sig_info.sa_mask = set;
370 #ifndef LYNXOS
371  sig_info.sa_flags = SA_RESTART;
372 #else
373  sig_info.sa_flags = 0;
374 #endif
375 
376  if( sigaction(SIGPIPE, &sig_info, 0) < 0 )
377  {
378  perror( "sigaction(SIGPIPE)" );
379  exit(1);
380  }
381 }
void pipe_sig_handler(int num)
Definition: dim_thr_old.c:383

+ Here is the call graph for this function:

+ Here is the caller graph for this function: