Applied a patch from Alexander Deynichenko: added missing signal definitions.

That also includes some XSI signals, SIGPOLL and SIGVTALRM, dunno if we will every support
those in a useful way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14593 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-10-31 12:39:29 +00:00
parent 4d9b4412bd
commit 0e1358bd5c
3 changed files with 49 additions and 26 deletions
+9 -1
View File
@@ -39,7 +39,8 @@
const char * const sigstr[NSIG] = {
"NONE", "HUP", "INT", "QUIT", "ILL", "CHLD", "ABRT", "PIPE",
"FPE", "KILL", "STOP", "SEGV", "CONT", "TSTP", "ALRM", "TERM",
"TTIN", "TTOU", "USR1", "USR2", "WINCH", "KILLTHR", "TRAP"
"TTIN", "TTOU", "USR1", "USR2", "WINCH", "KILLTHR", "TRAP",
"POLL", "PROF", "SYS", "URG", "VTALRM", "XCPU", "XFSZ"
};
@@ -127,6 +128,7 @@ handle_signals(struct thread *thread)
case SIGTTIN:
case SIGTTOU:
case SIGCONT:
case SIGURG:
// notify the debugger
if (debugSignal)
notify_debugger(thread, signal, handler, false);
@@ -148,6 +150,12 @@ handle_signals(struct thread *thread)
case SIGABRT:
case SIGFPE:
case SIGSEGV:
case SIGPOLL:
case SIGPROF:
case SIGSYS:
case SIGVTALRM:
case SIGXCPU:
case SIGXFSZ:
TRACE(("Shutting down thread 0x%lx due to signal #%d\n",
thread->id, signal));
case SIGKILL:
+9 -1
View File
@@ -41,7 +41,15 @@ sys_siglist[NSIG] = {
/* 19 - SIGUSR2 */ "User defined signal 2",
/* 20 - SIGWINCH */ "Window size changed",
/* 21 - SIGKILLTHR */ "Kill Thread",
/* 22 - SIGTRAP */ NULL
/* 22 - SIGTRAP */ "Trace/breakpoint trap",
/* 23 - SIGPOLL */ "Pollable event",
/* 24 - SIGPROF */ "Profiling timer expired",
/* 25 - SIGSYS */ "Bad system call",
/* 26 - SIGURG */ "High bandwidth data is available at socket",
/* 27 - SIGVTALRM */ "Virtual timer expired",
/* 28 - SIGXCPU */ "CPU time limit exceeded",
/* 29 - SIGXFSZ */ "File size limit exceeded",
NULL
};