search for: killreceiver

Displaying 1 result from an estimated 1 matches for "killreceiver".

2012 Nov 17
1
Sighandlers
...n't find an answer. I try to register a sighandler in my extension's C code. But my sighandler is never called. Is there anything preventing extensions to receive signals? I register like this: [.. some code that works ..] // register the sigint listeners. if (signal(SIGTERM, killReceiver) == SIG_ERR) { printf("2 An error occurred while setting a signal handler.%s\n", stderr); } if (signal(SIGHUP, killReceiver) == SIG_ERR) { printf("3 An error occurred while setting a signal handler.%s\n", stderr); } if (signal(SIGINT, kill...