*BSD News Article 52527


Return to BSD News archive

#! rnews 1114 bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!vtc.tacom.army.mil!ulowell.uml.edu!wang!news.kei.com!news.mathworks.com!news.duke.edu!agate!howland.reston.ans.net!EU.net!news.eunet.fi!news.spb.su!KremlSun!satisfy.kiae.su!demos!news.techno.ru!rndavia.ru!nobody
From: cae@rndavia.ru (Eremenko Sergey)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Controlling terminal for session leader
Date: 4 Oct 1995 09:40:03 +0300
Organization: RNDAVIA
Lines: 16
Message-ID: <44ta83$2eu@rndavia.ru>
NNTP-Posting-Host: rndavia.ru
X-Newsreader: TIN [version 1.2 PL2]


Hello, All!

I have a little problem with programming under BSDI 1.1.
I can't acquire the terminal device as controlling terminal to 
session leader. open () without O_NOCTTY don't work, because
O_NOCTTY == 0.
I call setsid () for create new session leader, it work ok, but
how acquire controlling terminal for it?
Without controlling terminal SIGHUP is don't generating ;(
Anybody can to help me? Maybe BSDI's guru? ;)

Regards, CAEsar

--- V42.beer required
 * Origin: AeroNet Node (2:5061/2.16@FidoNet.Org || cae@rndavia.ru)