Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!hp9000.csc.cuhk.hk!uakari.primate.wisc.edu!sdd.hp.com!apollo.hp.com!netnews From: sommerfeld@apollo.hp.com (Bill Sommerfeld) Newsgroups: comp.unix.bsd Subject: Re: GNU emacs for 386BSD Message-ID: <SOMMERFELD.92Aug5165133@gourmet.apollo.hp.com> Date: 5 Aug 92 20:50:43 GMT References: <1992Jul28.155251.3433@nrao.edu> Sender: usenet@apollo.hp.com (Usenet News) Organization: Hewlett Packard Lines: 55 In-Reply-To: cflatter@nrao.edu's message of Tue, 28 Jul 1992 15:52:51 GMT Nntp-Posting-Host: gourmet.ch.apollo.hp.com I found that I needed to patch Chris Flatters' distribution as follows in order to get subprocesses to have their controlling terminals set correctly. - Bill *** xx/s-386bsd.h Wed Aug 5 09:31:24 1992 --- s-386bsd.h Wed Aug 5 09:05:32 1992 *************** *** 136,138 **** --- 136,145 ---- /etc. We use the system termcap library to avoid putting a #ifdef in termcap.c or forcing the user to use TERMCAP. */ #define LIBS_TERMCAP -ltermcap + + /* 386BSD doesn't have a -lg */ + #define LIBS_DEBUG + + /* 386BSD supports the "setsid" system call */ + #define HAVE_SETSID + *** /tmp/,RCSt1000182 Wed Aug 5 08:59:30 1992 --- process.c Wed Aug 5 08:59:05 1992 *************** *** 156,162 **** --- 156,164 ---- #define WAITTYPE union wait #define WRETCODE(w) w.w_retcode + #ifndef WCOREDUMP #define WCOREDUMP(w) w.w_coredump + #endif #ifdef HPUX /* HPUX version 7 has broken definitions of these. */ *************** *** 1209,1214 **** --- 1211,1226 ---- /* First, disconnect its current controlling terminal. */ #ifdef HAVE_SETSID setsid (); + #ifdef TIOCSCTTY + /* + * Tell the terminal that we want it to be our controlling + * terminal. + */ + if (pty_flag && (ioctl (xforkin, TIOCSCTTY, 0) < 0)) + { + perror ("TIOCSCTTY"); + } + #endif #else /* not HAVE_SETSID */ #ifdef USG /* It's very important to call setpgrp() here and no time