Changeset b7ee0369 in mainline for uspace/lib/posix/signal.c
- Timestamp:
- 2011-07-31T05:08:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d3e241a
- Parents:
- 051e6ac (diff), 27a8d1d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/signal.c
r051e6ac rb7ee0369 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.