🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #316

A puzzle, with pseudo devices :-)

#316
From: Sergio Aponte
Date: Tue, 05 Sep 1989 19:24
32 lines
1815 bytes
	Ok, here is the setup. IBM RT PC AIX 2.2.1.

	I connect to the RT thru TCP/IP. I get loged into pseudo device 0 (pst0)

	After doing any kind of work, I logout and "loose" my connection (have
	hupcl on), no login prompt is re-spawned. Ok so far.

	I log in, and run a C program (myprog), which in turn does a fork of a
	detached process. This works fine. When I look at my "ps -ef" the
	process has parent pid "1" and does not have a port attached.

	myprog myproc (Spawns myproc as a detached process)

 	   UID   PID  PPID  C         STIME     TTY  TIME COMMAND
	myself    97     1  0      11:48:12       -  0:01 myproc

	Problem : When I go to log out, the line DOES NOT DROP, it actually
	re-spawns the login prompt.

	Why? What can I do in my fork that changes the behavior of my
	pseudo-tty? "stty -a" before and after the fork are identical. Hupcl is
	still set. No stty or ioctl calls are used. The program does not send
	any output to the screen.

	Hope somebody at least will know what to look at to notice change in
	behaviour of pseudo tty.

-------------------------------------------------------------------------------
| Internet: sergio@squid.rtech.com                Sergio L. Aponte, MTS @ RTI |
| UUCP: {sun,mtxinu,pyramid,pacbell,hoptoad,amdahl,cpsc6a}!rtech!squid!sergio |
-------------------------------------------------------------------------------
Technical Details
Message-ID: <3550@rtech.rtech.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!rtech!squid!sergio

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!rtech!squid!sergio
From: sergio@squid.rtech.com (Sergio Aponte)
Newsgroups: comp.sys.ibm.pc.rt
Subject: A puzzle, with pseudo devices :-)
Message-ID: <3550@rtech.rtech.com>
Date: 5 Sep 89 19:24:29 GMT
Sender: news@rtech.rtech.com
Reply-To: sergio@squid.UUCP (Sergio Aponte)
Organization: Relational Technology, Inc.
Lines: 32