home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / misc / 41544 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.5 KB

  1. Path: sparky!uunet!gatech!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: Detach command.
  5. Message-ID: <1993Jan7.195001.28493@njitgw.njit.edu>
  6. Date: 7 Jan 93 19:50:01 GMT
  7. References: <1ih9vnINNbrf@transfer.stratus.com> <21062@ucdavis.ucdavis.edu>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 30
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <21062@ucdavis.ucdavis.edu> ez003045@hamlet.ucdavis.edu (James E. Lee) writes:
  14. >Also, does anyone know of a way to put something in the background
  15. >and foreground on the fly without using PM windows (like fg & bg in 
  16. >UNIX)?
  17.  
  18. Can't be done.  The four OS/2 session types (PM, Windowed,
  19. Full-Screen, and Detatched) all have different properties.  Unlike
  20. Unix, where a background process uses the same session type as a
  21. foreground process.  An app wouldn't be able to deal with the changes.
  22. For instance:
  23.  
  24. A PM app can not do any console I/O
  25.  
  26. A windowed or full-screen session can not create a message queue or
  27. perform any functions (like open windows) that requires one.  Oddly
  28. enough, WinInitialize() returns a valid HAB to a non-PM app.  I think
  29. this is a bug.
  30.  
  31. A detached process can have no I/O other than the command-line and
  32. data files.
  33.  
  34. etc., etc.
  35.  
  36.  
  37.  
  38. -- 
  39.   |)  David Charlap          | .signature confiscated by FBI due to
  40.  /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
  41. ((|,)                        | source of these .signature virusses
  42.  ~|~
  43.