externalpipe: sigchld changes interfere with right-click-to-plumb and opencopied patches, proposed fix ref. #27

This commit is contained in:
bakkeby 2021-05-15 11:44:09 +02:00
parent 56931acefb
commit 80bb4b8ab7
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,5 @@
int extpipeactive = 0;
void
#if EXTERNALPIPEIN_PATCH
extpipe(const Arg *arg, int in)
@ -58,6 +60,7 @@ externalpipe(const Arg *arg)
close(to[1]);
/* restore */
signal(SIGPIPE, oldsigpipe);
extpipeactive = 1;
}
#if EXTERNALPIPEIN_PATCH