1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-04-12 22:11:29 +02:00

2002-09-04 Neal H. Walfield <neal@g10code.de>

* gpg-agent.c (main): Use sigaction, not signal.
This commit is contained in:
Neal Walfield 2002-09-05 16:28:31 +00:00
parent cab999130d
commit 32abeed559
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-09-04 Neal H. Walfield <neal@g10code.de>
* gpg-agent.c (main): Use sigaction, not signal.
2002-09-03 Neal H. Walfield <neal@g10code.de>
* findkey.c: Include <fcntl.h>.

View File

@ -632,12 +632,18 @@ main (int argc, char **argv )
#ifdef USE_GNU_PTH
if (!disable_pth)
{
struct sigaction sa;
if (!pth_init ())
{
log_error ("failed to initialize the Pth library\n");
exit (1);
}
signal (SIGPIPE, SIG_IGN);
sa.sa_handler = SIG_IGN;
sigemptyset (&sa.sa_mask);
sa.sa_flags = 0;
sigaction (SIGPIPE, &sa, NULL);
handle_connections (fd);
}
else