From owner-freebsd-questions Tue Dec 16 05:55:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA26394 for questions-outgoing; Tue, 16 Dec 1997 05:55:21 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id FAA26389 for ; Tue, 16 Dec 1997 05:55:17 -0800 (PST) (envelope-from atf3r@cs.virginia.edu) Received: from mail.cs.virginia.edu by mail.virginia.edu id aa11973; 16 Dec 97 8:54 EST Received: from mamba.cs.Virginia.EDU (mamba-fo.cs.Virginia.EDU [128.143.136.18]) by ares.cs.Virginia.EDU (8.8.5/8.8.5) with ESMTP id IAA01070; Tue, 16 Dec 1997 08:54:49 -0500 (EST) Received: from localhost (atf3r@localhost) by mamba.cs.Virginia.EDU (8.7.5/8.7.3) with SMTP id IAA16040; Tue, 16 Dec 1997 08:54:48 -0500 (EST) X-Authentication-Warning: mamba.cs.Virginia.EDU: atf3r owned process doing -bs Date: Tue, 16 Dec 1997 08:54:48 -0500 (EST) From: "Adrian T. Filipi-Martin" Reply-To: Adrian Filipi-Martin To: Abc Xyz cc: freebsd-questions Subject: Re: ctrl-Z / & In-Reply-To: <34961A4F.41C67EA6@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 15 Dec 1997, Abc Xyz wrote: > can i know beforehand whether or not a process > will "stop" (as opposed to continuing to process) > when thrown into the background, or suspended > with ctrl-Z? are there rules that determine this? > > it apears some programs run, and some don't. > and i think some used to, and now don't (ping). A backgrounded proccess will always be stopped if it tries to read from the controlling terminal. Whether it is stopped when it attempts to write output depends upon the "tostop" tty flag. If you see the man page for stty(1) you will see that setting tostop will cause the program to be sent a SIGTTOU to the process and the default behavior of the signal is to stop the process. If you set -tostop, then the process will ignore the SIGTTOU, write the the tty and continue as if nothing had happened. -tostop should be the default setting. Adrian -- adrian@virginia.edu ---->>>>| If I were stranded on a desert island, and System Administrator --->>>| I could only have one OS for my computer, Neurosurgical Visualzation Lab -->>| it would be FreeBSD. Think about it..... http://www.nvl.virginia.edu/ ->| http://www.freebsd.org/