home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 12983 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.8 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!haven.umd.edu!mimsy!afterlife!adm!news
  2. From: HERBER@fnalf.fnal.gov (Randolph J. Herber, CD/DCD/USS, x2966)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: modem and background jobs
  5. Message-ID: <32243@adm.brl.mil>
  6. Date: 27 Aug 92 18:47:32 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 39
  9.  
  10. +From: "Richard E. Gillilan" <reg@sdchemw2.ucsd.edu>
  11. +Newsgroups: comp.sys.sgi
  12. +Subject: modem and background jobs
  13. +Date: 10 Aug 92 20:13:27 GMT
  14.  
  15. +Normally, when users log off of a modem line, the SGI hangs up the
  16. +phone. If, however, anyone has submitted a background job from that
  17. +line, our SGI will not terminate the call. Does anyone know what the
  18. +problem is here?
  19.  
  20. +Thanks
  21.  
  22. +Richard E. Gillilan
  23.  
  24. Dave Olson of SGI, please correct me if I make any errors.
  25.  
  26. This is a FAQ and a RTFM item.  But, I must admit that it is hard-to-find
  27. RTFM item!
  28.  
  29. 1. a regular file or special device file is not closed in the kernel until
  30.    all open fd's for the file are closed either by explicit close()s or
  31.    by implicit closes as a result of process termination.
  32.  
  33. 2. an exec() replicates open fd's (except for those marked close-on-exec)
  34.    so that both parent and child have open fd's.  After the fork, the open
  35.    status of the fd's are independent.
  36.  
  37. 3. as long as any process has a open fd for the process, including control tty,
  38.    the tty driver will not drop DTR to the modem.  It is dropping of DTR that
  39.    normally signals the disconnection of the telephone connection.
  40.  
  41. 4. I believe that:
  42.     nohup %cmd% </dev/null >& report.file &
  43.    will result in the proper conditions for a background job that will release
  44.    the modem by dropping DTR.
  45.  
  46. Randolph J. Herber, herber@fnalf.fnal.gov, +1 708 840 2966
  47. (Speaking for myself and not for US, US DOE, FNAL nor URA.)
  48. (Product, trade, or service marks herein belong to their respective owners.)
  49.