diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-01-09 11:00:00 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-01-09 11:00:00 +0000 |
commit | ec4dfccf285aab604a0d0cab1bec31da5b3e65e4 (patch) | |
tree | 1a9337c2574210059fcbfc114bdb8e0d56a3f81d /gdb/event-top.c | |
parent | d3653bf63512b822238f8b0ccc812353f26cab33 (diff) | |
download | gdb-ec4dfccf285aab604a0d0cab1bec31da5b3e65e4.zip gdb-ec4dfccf285aab604a0d0cab1bec31da5b3e65e4.tar.gz gdb-ec4dfccf285aab604a0d0cab1bec31da5b3e65e4.tar.bz2 |
* event-top.c (async_disconnect, async_stop_sig): use "raise"
instead of "kill" to raise a signal.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r-- | gdb/event-top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 5483608..fd7c521 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -977,7 +977,7 @@ async_disconnect (gdb_client_data arg) "Could not kill the program being debugged", RETURN_MASK_ALL); signal (SIGHUP, SIG_DFL); /*FIXME: ??????????? */ - kill (getpid (), SIGHUP); + raise (SIGHUP); } #endif @@ -1005,7 +1005,7 @@ async_stop_sig (gdb_client_data arg) #elif HAVE_SIGSETMASK sigsetmask (0); #endif - kill (getpid (), SIGTSTP); + raise (SIGTSTP); signal (SIGTSTP, handle_stop_sig); #else signal (STOP_SIGNAL, handle_stop_sig); |