351 struct sigaction sig_info;
355 if( sigaction(SIGPIPE, 0, &sig_info) < 0 )
357 perror(
"sigaction(SIGPIPE)" );
360 if(sig_info.sa_handler)
369 sig_info.sa_mask =
set;
371 sig_info.sa_flags = SA_RESTART;
373 sig_info.sa_flags = 0;
376 if( sigaction(SIGPIPE, &sig_info, 0) < 0 )
378 perror(
"sigaction(SIGPIPE)" );
void pipe_sig_handler(int num)