mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Ignore repeated signals sent to the parent in background
mode.
This commit is contained in:
parent
121ba32d78
commit
ac37ab22eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47119
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: main.c,v 1.153 1999/04/26 08:54:34 brian Exp $
|
||||
* $Id: main.c,v 1.154 1999/05/08 11:07:05 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
@ -134,6 +134,7 @@ static pid_t BGPid = 0;
|
||||
static void
|
||||
KillChild(int signo)
|
||||
{
|
||||
signal(signo, SIG_IGN);
|
||||
log_Printf(LogPHASE, "Parent: Signal %d\n", signo);
|
||||
kill(BGPid, SIGINT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user