home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / internal / 1577 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.unix.internals
  2. Path: sparky!uunet!ftpbox!mothost!white!sapphire.rtsg.mot.com!galena15!murphyn
  3. From: murphyn@rtsg.mot.com (Neal P. Murphy)
  4. Subject: Re: Background processes and stdin
  5. Message-ID: <murphyn.711757239@galena15>
  6. Sender: news@rtsg.mot.com
  7. Nntp-Posting-Host: galena15
  8. Organization: Motorola Inc., Cellular Infrastructure Group
  9. References: <1992Jul21.023713.2702@hubcap.clemson.edu>
  10. Distribution: na
  11. Date: Tue, 21 Jul 1992 22:20:39 GMT
  12. Lines: 15
  13.  
  14. rsaripa@saturn.cs.clemson.edu (Saripalli Ramakrishna) writes:
  15.  
  16. >    When a background process needs terminal input,it is stopped.
  17. >    The message "Stopped " appears on the output.
  18. >...
  19. >    Now if the shell and the process both happen to need input from
  20. >    "stdin",why does not the background process steal whatever I type
  21. >    on the terminal and let the shell wait for input?.
  22.  
  23. Under sh (Bourne), this is precisely what happens. Under ksh and csh
  24. and perhaps tcsh, backgroud processes that desire input are stopped,
  25. because these shells have job control built in. Older SysV flavors
  26. have shl - shell layers - effectively doing the same thing.
  27.  
  28. NPN
  29.