[491] in Zephyr_Bugs
hpux patch for zhm/zhm.c
daemon@ATHENA.MIT.EDU (brlewis@Athena.MIT.EDU)
Fri Jun 25 14:14:12 1993
From: brlewis@Athena.MIT.EDU
Date: Fri, 25 Jun 93 14:14:05 -0400
To: bug-zephyr@Athena.MIT.EDU
Cc: bugs@Athena.MIT.EDU
Hmm...I'm kind of crossing my fingers with that #define of
getdtablesize(). But it compiles and seems to run fine.
*** /tmp/,RCSt1a19010 Fri Jun 25 14:10:36 1993
--- zhm/zhm.c Thu Jun 3 16:01:39 1993
***************
*** 11,16 ****
--- 11,20 ----
* "mit-copyright.h".
*/
+ #ifdef hpux
+ #define getdtablesize() (64)
+ #endif
+
#include "zhm.h"
static char rcsid_hm_c[] = "$Id: zhm.c,v 1.1 93/06/03 15:31:38 brlewis Exp Locker: brlewis $";
***************
*** 413,419 ****
--- 417,425 ----
if ((i = open("/dev/tty", O_RDWR, 666)) < 0)
; /* Can't open tty, but don't flame about it. */
else {
+ #ifdef hpux
+ setsid()
+ #endif /* hpux */
+ #ifdef TIOCNOTTY
(void) ioctl(i, TIOCNOTTY, (caddr_t) 0);
+ #endif
(void) close(i);
}
}