wryun / es-shell

es: a shell with higher-order functions
http://wryun.github.io/es-shell/
Other
307 stars 25 forks source link

occasional 'wait: no child processes' on SIGINT #7

Open wryun opened 12 years ago

wryun commented 12 years ago

http://wryun.github.io/es-shell/mail-archive/msg01026.html

easy way to reproduce (~25%?) is to create a self-referential file:

#!/usr/bin/env es
./a

related (?): seems to miss a Ctrl-C occasionally as well.

rc changelog suggests they rewrote signal handling code. Worth a look.

wryun commented 9 years ago

Actually, nothing to do with self-referential file. Even a Ctrl-C on a sleep 1 will cause this.

wryun commented 9 years ago

Why didn't I read the mailing list comment before doing that. Oops. Clearly some sort of race condition that I'm too slow (ha ha) to think about at the moment.