Discussion:
[ast-developers] ksh hangs in pipes
Siteshwar Vashisht
2017-06-06 06:21:13 UTC
Permalink
Reproducer steps :

$ cat p1
#!/bin/ksh
while true
do
echo -n "Exit (y/n)? " 1>&2
read V
if [ "${V}" = "y" ]
then
exit 1
fi
sleep 1
done


$ cat p2
#!/bin/ksh
sleep 1
exit


Run as :

$ taskset 1 ksh
$ ./p1 | ./p2


First process will continue to receive SIGTTIN and SIGCONT. Attached patch fixes this issue.
--
--
Siteshwar Vashisht
Loading...