From Pavol Rusnak (bug 1740):

Set SA_RESTART flag when setting SIGPIPE handler.

svn path=/trunk/; revision=26851
This commit is contained in:
Balint Reczey 2008-11-26 12:54:39 +00:00
parent cbf6045254
commit 4942a20da4
1 changed files with 1 additions and 0 deletions

View File

@ -460,6 +460,7 @@ print_statistics_loop(gboolean machine_readable)
/* handle SIGPIPE signal to default action */
act.sa_handler = SIG_DFL;
sigemptyset(&act.sa_mask);
act.sa_flags = SA_RESTART;
sigaction(SIGPIPE,&act,NULL);
#endif