Commit a7db35b3 authored by Paul Eggert's avatar Paul Eggert

* emacsclient.c (handle_sigcont, handle_sigtstp): Use raise (sig)

rather than kill (getpid (), sig), as it's simpler and safer.
parent d7fcbbfe
2012-11-20 Paul Eggert <eggert@cs.ucla.edu>
* emacsclient.c (handle_sigcont, handle_sigtstp): Use raise (sig)
rather than kill (getpid (), sig), as it's simpler and safer.
2012-11-17 Juanma Barranquero <lekktu@gmail.com>
* makefile.w32-in (SYSWAIT_H): New macro.
......
......@@ -1138,7 +1138,7 @@ handle_sigcont (int signalnum)
else
{
/* We are in the background; cancel the continue. */
kill (getpid (), SIGSTOP);
raise (SIGSTOP);
}
signal (signalnum, handle_sigcont);
......@@ -1165,7 +1165,7 @@ handle_sigtstp (int signalnum)
sigprocmask (SIG_BLOCK, NULL, &set);
sigdelset (&set, signalnum);
signal (signalnum, SIG_DFL);
kill (getpid (), signalnum);
raise (signalnum);
sigprocmask (SIG_SETMASK, &set, NULL); /* Let's the above signal through. */
signal (signalnum, handle_sigtstp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment