* emacsclient.c (handle_sigcont, handle_sigtstp): Use raise (sig)
rather than kill (getpid (), sig), as it's simpler and safer.
This commit is contained in:
parent
d7fcbbfe4a
commit
a7db35b378
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2012-11-17 Juanma Barranquero <lekktu@gmail.com>
|
||||||
|
|
||||||
* makefile.w32-in (SYSWAIT_H): New macro.
|
* makefile.w32-in (SYSWAIT_H): New macro.
|
||||||
|
|
|
@ -1138,7 +1138,7 @@ handle_sigcont (int signalnum)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* We are in the background; cancel the continue. */
|
/* We are in the background; cancel the continue. */
|
||||||
kill (getpid (), SIGSTOP);
|
raise (SIGSTOP);
|
||||||
}
|
}
|
||||||
|
|
||||||
signal (signalnum, handle_sigcont);
|
signal (signalnum, handle_sigcont);
|
||||||
|
@ -1165,7 +1165,7 @@ handle_sigtstp (int signalnum)
|
||||||
sigprocmask (SIG_BLOCK, NULL, &set);
|
sigprocmask (SIG_BLOCK, NULL, &set);
|
||||||
sigdelset (&set, signalnum);
|
sigdelset (&set, signalnum);
|
||||||
signal (signalnum, SIG_DFL);
|
signal (signalnum, SIG_DFL);
|
||||||
kill (getpid (), signalnum);
|
raise (signalnum);
|
||||||
sigprocmask (SIG_SETMASK, &set, NULL); /* Let's the above signal through. */
|
sigprocmask (SIG_SETMASK, &set, NULL); /* Let's the above signal through. */
|
||||||
signal (signalnum, handle_sigtstp);
|
signal (signalnum, handle_sigtstp);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue