1
0
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:
Simon Tatham
2004-12-17 14:25:53 +00:00
parent d649075539
commit b3b70d749f
4 changed files with 20 additions and 21 deletions

View File

@ -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