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