Subject: port-pmax/2545: ultrix tty-aware binaries clobber NetBSD/pmax susp, dsusp
To: None <gnats-bugs@NetBSD.ORG>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: netbsd-bugs
Date: 06/13/1996 01:53:24
>Number:         2545
>Category:       port-pmax
>Synopsis:       ultrix tty-aware binaries clobber NetBSD/pmax susp, dsusp
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 13 05:20:01 1996
>Last-Modified:
>Originator:     Jonathan Stone
>Organization:
	Stanford DSG
>Release:        netBSD 1.1 (release) through NetBSD 1.2
>Environment:
	
System: NetBSD Reno.DSG.Stanford.EDU 1.2_ALPHA NetBSD 1.2_ALPHA (NEWCONF) #9: Wed Jun 12 17:20:08 PDT 1996 jonathan@Reno.DSG.Stanford.EDU:/usr/src/sys/arch/pmax/compile/NEWCONF pmax


>Description:

Running Ultrix binaries that touch the tty state seems to clobber
the susp and dsusp characters.

>How-To-Repeat:

Find a version of less compiled for Ultrix. Run it under NetBSD/pmax
with a kernel with Ultrix compatibility.

An Ultrix "less" binary seems to work but cannot be suspended.
After it exits, the tty has had its susp and dsusp characters
disabled (set to null?)

>Fix:

I'm not sure.  I don't see anything in the Ultrix-compat code that
would be doing this.   My very best guess is that it's a bug in the
mi emulation library's handling of 4.3bsd-style tty ioctls;
but I could be completely wrong.
>Audit-Trail:
>Unformatted: