Patch-ID# 100790-02
Keywords: setrun, process, interrupt, poll
Synopsis: SunOS 4.1.2,4.1.3: setrun called for process already running
Date: Apr/21/94

Solaris Release: 1.1
 
SunOS release: 4.1.2, 4.1.3, 4.1.3C
 
Topic: setrun called for process already running 
 
BugId's fixed with this patch: 1055188

Relevant Architecture: sparc
    NOTE: sun4c, sun4m

Patches which may conflict with this patch: 100359

Obsoleted by: 
	NOTE: 4.1.3_U1

Problem Description: 

	setrun gets going polltime, and an interrupt comes in on the tty
	and causes data to be  passed up the stream.
	read_put procedure simply queues the data on the stream head
	(which calls setrun to wake up the process).

	After the interrupt returns the setrun() call from polltime() resumes
	trying to wake an already awake process causing a panic.

INSTALL: 

As root:

Make a backup copy of the files to be installed:

mv /sys/`arch -k`/OBJ/str_syscalls.o /sys/`arch -k`/OBJ/str_syscall.o.FCS

Now install the patched files:

cp 4.1.3/`arch -k`/str_syscalls.o /sys/`arch -k`/OBJ
OR
cp 4.1.2/`arch -k`/str_syscalls.o /sys/`arch -k`/OBJ

Rerun /etc/config <kernel-name> and make and install the new kernel.

Please refer to the system and networking administration manual
for details on building and installing a new kernel.
