Subject: Background processes?
To: 'netbsd-help@netbsd.org' <netbsd-help@netbsd.org>
From: Bruce Martin <BruceM@cat.co.za>
List: netbsd-help
Date: 06/04/1999 14:09:49
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_001_01BEAE83.25A568D0
Content-Type: text/plain

We have written a set of processes that communicate via sockets. These
run fine on multiple terminals in the foreground, but as soon as I try
to put one in the background, we get problems.
Our config server, when run "./config &" goes into the background fine.
However, when I then type, say, "ls", I get a message:
	+ Suspended (tty output)	./config

I thought that only tty input should suspend a background process (I
have made sure that the -tostop option is in stty). Why is my background
process being terminated by output?

Thanks
  Bruce Martin 

------ =_NextPart_001_01BEAE83.25A568D0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.1960.3">
<TITLE>Background processes?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>We have written a set of processes that communicate =
via sockets. These run fine on multiple terminals in the foreground, =
but as soon as I try to put one in the background, we get =
problems.</FONT></P>

<P><FONT SIZE=3D2>Our config server, when run &quot;./config =
&amp;&quot; goes into the background fine. However, when I then type, =
say, &quot;ls&quot;, I get a message:</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>+ =
Suspended (tty output)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./config</FONT>
</P>

<P><FONT SIZE=3D2>I thought that only tty input should suspend a =
background process (I have made sure that the -tostop option is in =
stty). Why is my background process being terminated by =
output?</FONT></P>

<P><FONT SIZE=3D2>Thanks</FONT>
<BR><FONT SIZE=3D2>&nbsp; Bruce Martin </FONT>
</P>

</BODY>
</HTML>
------ =_NextPart_001_01BEAE83.25A568D0--