mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Added SIGPIPE handing. (#127)
If you are grepping the debugging output and then hit ctrl-C, theres a good change hyperiond never cleans up properly.
This commit is contained in:
parent
4e99a24568
commit
8f982f3225
@ -50,6 +50,7 @@ int main(int argc, char** argv)
|
|||||||
signal(SIGINT, signal_handler);
|
signal(SIGINT, signal_handler);
|
||||||
signal(SIGTERM, signal_handler);
|
signal(SIGTERM, signal_handler);
|
||||||
signal(SIGCHLD, signal_handler);
|
signal(SIGCHLD, signal_handler);
|
||||||
|
signal(SIGPIPE, signal_handler);
|
||||||
|
|
||||||
// force the locale
|
// force the locale
|
||||||
setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
|
Loading…
Reference in New Issue
Block a user