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:
@@ -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
|
||||
|
Reference in New Issue
Block a user