aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/bif_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-07-14 12:24:49 +0200
committerLukas Larsson <[email protected]>2016-08-08 16:34:18 +0200
commitf1ca806498bc7f7dad96f2c7e188fdc55e0124cb (patch)
tree6e7a01ebb9b908ec5a29a875fa54250004175793 /lib/kernel/test/bif_SUITE.erl
parentb490fb8664ec6e5ceaadc1c74350dc666f5406d2 (diff)
downloadotp-f1ca806498bc7f7dad96f2c7e188fdc55e0124cb.tar.gz
otp-f1ca806498bc7f7dad96f2c7e188fdc55e0124cb.tar.bz2
otp-f1ca806498bc7f7dad96f2c7e188fdc55e0124cb.zip
kernel: Use ^D as eot for os:cmd on unix platforms
This is needed as doing only an 'exit' will only exit the program, but any children started in the program that have stdout/stderr still open will keep the port open until they terminate. i.e. os:cmd("while true; do echo sleep 1; sleep 1; done&"). would block os:cmd forever because the while loop keeps its copies of stdout/stderr open forever. It could be argued that this is correct behaviour, and it is the way it works on windows, but changing this breaks backwards compatability for os:cmd which is not acceptable.
Diffstat (limited to 'lib/kernel/test/bif_SUITE.erl')
0 files changed, 0 insertions, 0 deletions