Fix for the broken I/O watch conditions on child exit under OSX
commit902681d260435fde5181652839a9e49170150c41
authorDimitar Zhekov <dimitar.zhekov@gmail.com>
Sat, 18 Apr 2015 08:47:31 +0000 (18 11:47 +0300)
committerDimitar Zhekov <dimitar.zhekov@gmail.com>
Sat, 18 Apr 2015 08:47:31 +0000 (18 11:47 +0300)
treeb294da6d4cd2c7013cd7528b5898ced2bcfa438f
parentbfa93af5cc3ee23cd049e5a144f2c393aba45e95
Fix for the broken I/O watch conditions on child exit under OSX

Under OSX, after child death, the read watches receive input
conditions instead of error conditions, so we convert the termination
statuses (ERROR and EOF) into their respective conditions. Should not
hurt the other OS.
src/spawn.c