mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12:47 -05:00
Jacob has pointed out why SIGCHLD was blocked, so I've updated the
comment when I unblock it in pty.c to reflect reality. Also I've moved block_signal() out of pterm.c into signal.c, so I can conveniently use it for unblocking SIGCHLD rather than having to reinvent it in pty.c. [originally from svn r5006]
This commit is contained in:
11
unix/pterm.c
11
unix/pterm.c
@ -2551,17 +2551,6 @@ int do_cmdline(int argc, char **argv, int do_everything,
|
||||
return err;
|
||||
}
|
||||
|
||||
static void block_signal(int sig, int block_it) {
|
||||
sigset_t ss;
|
||||
|
||||
sigemptyset(&ss);
|
||||
sigaddset(&ss, sig);
|
||||
if(sigprocmask(block_it ? SIG_BLOCK : SIG_UNBLOCK, &ss, 0) < 0) {
|
||||
perror("sigprocmask");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* This function retrieves the character set encoding of a font. It
|
||||
* returns the character set without the X11 hack (in case the user
|
||||
|
Reference in New Issue
Block a user