Child process not getting killed by SIGTERM, but are killed with ctrl+c

70 views
Skip to first unread message

Rui Campos

unread,
Jul 22, 2014, 6:39:13 AM7/22/14
to haxe...@googlegroups.com
Hi,

I'm trying to run "lime test html5" in the background (with &). The command starts a neko process with a webserver and blocks until killed. 

I want to kill the whole thing after a while, but it seems that, while ctrl+c in the foreground will kill the child process webserver, when in the background sending SIGTERM won't...

Maybe the command is listening to the ctrl+c keystroke and not to the signal to kill the child processes...

I'm probably missing something about how the neko processes work. 

Can anyone help?

Thanks!

Rui Campos

unread,
Jul 22, 2014, 10:59:45 AM7/22/14
to haxe...@googlegroups.com
I think I know what the problem is... When I do ctrl+c, I'm killing the inner webserver, not the actual command. Because the shell is pointing to the standard input of the server. When the server closes, the "parent" script that was blocking for the webserver execution, finishes aswell...

So, I guess you can ignore this post :P
Reply all
Reply to author
Forward
0 new messages