🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.apple2.gno
Article #355

Re: [1] + Stopped (tty input)

#355
From: Jawaid Bazyar
Date: Mon, 23 Nov 1992 00:39
25 lines
1605 bytes
vandry@CAM.ORG (Phillip Vandry) writes:

>Something weird: the child process itself runs a child process: gsh, and resumeswhen gsh quits. If I remove the code to run gsh (thus making the program pretty
>useless, but still :)) it never mentions [1] + Stopped (tty input)

>Because of this, it seems as though gsh somehow changes the environment of its
>parent process. Under no circumstances should a child be able to do that!

>Jawaid, you suggested creating a new process group, but (1) I don't see how thatwould help, and (2) How would that be done anyway?

  Go to bed without any supper, Phillip! :)

  Process Groups assign processes to terminals.  Your program isn't in
the foreground until it and the terminal both belong to the same process
group.  Read the Kernel Reference, manpage "Job Control(2)" for details,
but you basically want to do this:

  tcnewpgrp(fdtty)
  settpgrp(fdtty)

-- 
 Jawaid Bazyar              |   Ask me about the GNO Multitasking Environment
 Procyon, Inc.              |   for the Apple IIgs!   
 bazyar@cs.uiuc.edu         |   P.O Box 620334
 --Apple II Forever!--      |   Littleton, CO 80162-0334   (303) 933-4649
Technical Details
Message-ID: <bazyar.722479145@teal>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!teal!bazyar
References: <By1C80.5t0@CAM.ORG>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.apple2.gno
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!teal!bazyar
From: bazyar@teal.csn.org (Jawaid Bazyar)
Subject: Re: [1] + Stopped (tty input)
Message-ID: <bazyar.722479145@teal>
Sender: news@csn.org (news)
Nntp-Posting-Host: teal.csn.org
Organization: Colorado SuperNet, Inc.
References: <By1C80.5t0@CAM.ORG>
Date: Mon, 23 Nov 1992 00:39:05 GMT
Lines: 25