instead of "kill" to raise a signal.
2009-01-09 Joel Brobecker <brobecker@adacore.com>
+ * event-top.c (async_disconnect, async_stop_sig): use "raise"
+ instead of "kill" to raise a signal.
+
+2009-01-09 Joel Brobecker <brobecker@adacore.com>
+
* win32-nat.c (get_module_name): Change the type of parameter
"base_address" to LPVOID. Remove unnecessary cast.
(struct lm_info): Change type of load_addr to LPVOID.
"Could not kill the program being debugged",
RETURN_MASK_ALL);
signal (SIGHUP, SIG_DFL); /*FIXME: ??????????? */
- kill (getpid (), SIGHUP);
+ raise (SIGHUP);
}
#endif
#elif HAVE_SIGSETMASK
sigsetmask (0);
#endif
- kill (getpid (), SIGTSTP);
+ raise (SIGTSTP);
signal (SIGTSTP, handle_stop_sig);
#else
signal (STOP_SIGNAL, handle_stop_sig);