icecc / icecream

Distributed compiler with a central scheduler to share build load
GNU General Public License v2.0
1.6k stars 252 forks source link

Worker daemon cannot be killed with ^C #541

Open torokati44 opened 4 years ago

torokati44 commented 4 years ago

Nor can it be put into the background with ^Z. Instead, it just does nothing, and I have to sudo killall iceccd from another shell. It is really annoying during debugging... I can see that there is some code in daemon/main.cpp that installs a signal handler for SIGINT, but I wasn't even able to verify that the handler I found (dcc_daemon_terminate) is indeed executed on ^C...

llunak commented 4 years ago

This works fine for me. You can try to debug this by launching iceccd with "-v -v -v", adding debug output to the signal handler, or using the debugger.

timblechmann commented 4 years ago

@llunak compare #372

it's certainly related to the interaction with sudo, however i'm able to ctrl-c-terminate other processes that run via sudo