[comp.sys.ncr] pg: cannot reopen stdout

jalsop@seachg.UUCP (John Alsop) (04/10/90)

I occasionally get the above message using pg.  When it occurs, it persists
until I log out and back in.

Unix 2.01 on a 32/400.

Any one know what causes this?


-- 
John Alsop

Sea Change Corporation
1100 Central Parkway W., Suite 38
Mississauga, Ontario, Canada L5C 4E5
Tel: 416-272-3881 Fax: 416-272-1555
UUCP: ...!uunet!attcan!darkover!seachg!jalsop

wescott@Columbia.NCR.COM (Mike Wescott) (04/11/90)

In article <207@seachg.UUCP> jalsop@seachg.UUCP (John Alsop) writes:

> pg: cannot reopen stdout

> I occasionally get the above message using pg.

This is caused by a failure to open /dev/tty.  For some reason there is no
controlling terminal is not associated with your session (process group).
This should not happen suddenly but should be the case throughout a session.
--
	-Mike Wescott
	 mike.wescott@ncrcae.Columbia.NCR.COM

wescott@Columbia.NCR.COM (Mike Wescott) (04/11/90)

In article <207@seachg.UUCP> jalsop@seachg.UUCP (John Alsop) writes:
> pg: cannot reopen stdout

> I occasionally get the above message using pg.  When it occurs, it persists
> until I log out and back in.

> Any one know what causes this?

The immediate cause is the inability to open /dev/tty.  This means that
there is no controlling terminal for that particular process group (login
session).  Do you run any programs that play games with the process group?
Or is this happening only on the console?  Are there messages from init(1m)
on the console as well?  Are there other programs opening up your tty?

--
	-Mike Wescott
	 mike.wescott@ncrcae.Columbia.NCR.COM