Ignore SIGPIPE when we've opened a pipe
This commit is contained in:
parent
278ef59110
commit
e0d452d5ef
|
@ -571,6 +571,9 @@ posix_popen(self, args)
|
|||
fp = popen(getstringvalue(name), getstringvalue(mode));
|
||||
if (fp == NULL)
|
||||
return posix_error();
|
||||
/* From now on, ignore SIGPIPE and let the error checking
|
||||
do the work. */
|
||||
(void) signal(SIGPIPE, SIG_IGN);
|
||||
return newopenfileobject(fp, name, mode, pclose);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue