Ioctl TIOCSCTTY should not be used on HP-UX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@76 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1334,7 +1334,7 @@ login_tty(t)
|
|||||||
fatalperror(net, "setsid()");
|
fatalperror(net, "setsid()");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
# ifdef TIOCSCTTY
|
# if defined(TIOCSCTTY) && !defined(__hpux)
|
||||||
if (ioctl(t, TIOCSCTTY, (char *)0) < 0)
|
if (ioctl(t, TIOCSCTTY, (char *)0) < 0)
|
||||||
fatalperror(net, "ioctl(sctty)");
|
fatalperror(net, "ioctl(sctty)");
|
||||||
# if defined(CRAY)
|
# if defined(CRAY)
|
||||||
@@ -1354,10 +1354,10 @@ login_tty(t)
|
|||||||
* setsid() call above may have set our pgrp, so clear
|
* setsid() call above may have set our pgrp, so clear
|
||||||
* it out before opening the tty...
|
* it out before opening the tty...
|
||||||
*/
|
*/
|
||||||
# ifndef SOLARIS
|
# if defined(SOLARIS) || defined(__hpux)
|
||||||
(void) setpgrp(0, 0);
|
|
||||||
# else
|
|
||||||
(void) setpgrp();
|
(void) setpgrp();
|
||||||
|
# else
|
||||||
|
(void) setpgrp(0, 0);
|
||||||
# endif
|
# endif
|
||||||
close(open(line, O_RDWR));
|
close(open(line, O_RDWR));
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user