[222] in Zephyr_Bugs

home help back first fref pref prev next nref lref last post

[geoff@ATHENA.MIT.EDU: decmips 7.1H: zwgc]

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Mon Jan 7 14:21:58 1991

Date: Mon, 7 Jan 91 14:21:38 -0500
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: bug-zephyr@ATHENA.MIT.EDU


----- Forwarded message
Return-Path: geoff@ATHENA.MIT.EDU
From: geoff@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
Subject: decmips 7.1H: zwgc
Date: Sun, 09 Sep 90 21:02:41 EDT

System name:		hodge
Type and version:	KN01 7.1H (1 update(s) to same version)
Display type:		PM-MONO

What were you trying to do?
	start zwgc in tty mode without DISPLAY set

What's wrong:
	I typed "zwgc -ttymode &" (instead of "zwgc -ttymode") and
	zwgc dumped core.

	When DISPLAY is not set, ZSetLocation calls ttyname(0).  If
	zwgc is run in the background, then fd 0 has no tty,
	and the call returns NULL.  This is not checked, so the rindex
	following dumps core.

What should have happened:
	zwgc should have just run, without dumping core.  Z_SendLocation()
	should check the return value of ttyname, or call ttyname for fd 1.

Please describe any relevant documentation references:
	It looks like backgrounding zwgc -ttymode makes zwgc dump core.


----- End of forwarded message

home help back first fref pref prev next nref lref last post