reset signals to default, needed on solaris 8

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10855 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-02-27 10:51:27 +00:00
parent c3503cff5b
commit 6b6d122805

View File

@@ -493,6 +493,13 @@ do_login(const struct passwd *pwd, char *tty, char *ttyn)
if(rootlogin == 0)
exit(1);
}
/* make sure signals are set to default actions, apparently some
OS:es like to ignore SIGINT, which is not very convenient */
for (i = 1; i < NSIG; ++i)
signal(i, SIG_DFL);
/* all kinds of different magic */
#ifdef HAVE_GETSPNAM