Changes in uspace/lib/posix/signal.c [4cf8ca6:ffff746] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/signal.c
r4cf8ca6 rffff746 66 66 67 67 /** 68 * 69 * @param signo 68 * Default signal handler. Executes the default action for each signal, 69 * as reasonable within HelenOS. 70 * 71 * @param signo Signal number. 70 72 */ 71 73 void __posix_default_signal_handler(int signo) … … 75 77 abort(); 76 78 case SIGQUIT: 77 fprintf(stderr, "Quit signal raised. Exiting. ");79 fprintf(stderr, "Quit signal raised. Exiting.\n"); 78 80 exit(EXIT_FAILURE); 79 81 case SIGINT: 80 fprintf(stderr, "Interrupt signal caught. Exiting. ");82 fprintf(stderr, "Interrupt signal caught. Exiting.\n"); 81 83 exit(EXIT_FAILURE); 82 84 case SIGTERM: 83 fprintf(stderr, "Termination signal caught. Exiting. ");85 fprintf(stderr, "Termination signal caught. Exiting.\n"); 84 86 exit(EXIT_FAILURE); 85 87 case SIGSTOP: 86 fprintf(stderr, "Stop signal caught, but unsupported. Ignoring. ");88 fprintf(stderr, "Stop signal caught, but unsupported. Ignoring.\n"); 87 89 break; 88 90 case SIGKILL: … … 250 252 " or fully unsupported signal. This handler may only be" 251 253 " invoked by the raise() function, which may not be what" 252 " the application developer intended .\nSignal name");254 " the application developer intended"); 253 255 } 254 256 … … 358 360 } 359 361 362 if (signo > _TOP_SIGNAL) { 363 errno = EINVAL; 364 return -1; 365 } 366 360 367 if (pid == (posix_pid_t) task_get_id()) { 361 368 return posix_raise(signo); 362 }363 364 if (pid > _TOP_SIGNAL) {365 errno = EINVAL;366 return -1;367 369 } 368 370
Note:
See TracChangeset
for help on using the changeset viewer.