(main): catch sigpipe, we don't bother select()ing for errors

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14399 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-12-13 22:24:26 +00:00
parent ca0da3a363
commit 9fa56507e9

View File

@@ -98,10 +98,14 @@ main(int argc, char **argv)
sigaction(SIGINT, &sa, NULL);
sigaction(SIGTERM, &sa, NULL);
sa.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &sa, NULL);
}
#else
signal(SIGINT, sigterm);
signal(SIGTERM, sigterm);
signal(SIGPIPE, SIG_IGN);
#endif
#ifdef HAVE_DAEMON
if (detach_from_console)