Link to ArchLinux package

This commit is contained in:
Fabian Kurz 2013-01-13 17:38:11 +00:00
parent 3800d9513a
commit 94d9eb7dac
1 changed files with 5 additions and 2 deletions

View File

@ -268,13 +268,16 @@ int main (int argc, char** argv) {
start_time = time(NULL);
srand((unsigned int) start_time);
/* Signal handling */
/* Signal handling for Ctl-C; not needed for MinGW, where
* Ctl-C while reading from STDIN has the same effect as
* Ctl-D apparently.*/
#if !__MINGW32__
if (signal(SIGINT, signalhandler) == SIG_ERR) {
fprintf(stderr, "Failed to set up signal handler for SIGINT\n");
return EXIT_FAILURE;
}
#endif
#ifndef CGI