summaryrefslogtreecommitdiff
path: root/libguile/strings.h
diff options
context:
space:
mode:
authorNeil Jerram <neil@ossau.uklinux.net>2010-06-10 23:40:41 +0100
committerNeil Jerram <neil@ossau.uklinux.net>2010-07-01 22:16:54 +0100
commit6069e9733163cf802e806bfa55cb4fcc54fc6ac7 (patch)
treeda25b8683b86ee6b5ee9e94513e7f82171f0d8c6 /libguile/strings.h
parentd5e0eb579798067b411aa36ad7f21eb0cd16ef07 (diff)
downloadguile-6069e9733163cf802e806bfa55cb4fcc54fc6ac7.tar.gz
Fix hanging of popen.test
The "open-output-pipe":"no duplicate" test has been hanging, on and off, and not completely reliably, for a few years. It's now doing so fairly reliably for me, and investigation shows that - the child shell process is in a tight loop (99% CPU) - the parent Guile process is stuck calling waitpid(). The problem is that the child hasn't got the SIGPIPE that the test intends, and so is continuing to echo "closed" forever; and Guile is waiting for it to terminate, forever. I haven't fully debugged the SIGPIPE problem, but it sounds very like what Chet Ramey describes here: http://old.nabble.com/Re%3A-SIGPIPE-not-properly-reset-with-%27trap---PIPE%27-p20985595.html. (And my version of bash is 3.2.39.) So, a fix should be to use something other than shell to implement the child; and it appears that this works. * check-guile.in (TEST_SUITE_DIR): Export. * test-suite/tests/popen-child.scm: New script file. * test-suite/tests/popen.test ("open-output-pipe", "no duplicate"): Use Guile for the child process, instead of shell.
Diffstat (limited to 'libguile/strings.h')
0 files changed, 0 insertions, 0 deletions