home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!gatech!concert!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
- From: dic5340@hertz.njit.edu (David Charlap)
- Newsgroups: comp.os.os2.misc
- Subject: Re: Detach command.
- Message-ID: <1993Jan7.230727.1343@njitgw.njit.edu>
- Date: 7 Jan 93 23:07:27 GMT
- References: <21062@ucdavis.ucdavis.edu> <19930107.115224.653@almaden.ibm.com> <1ii3r8INNfea@iskut.ucs.ubc.ca>
- Sender: news@njit.edu
- Organization: New Jersey Institute of Technology, Newark, N.J.
- Lines: 27
- Nntp-Posting-Host: hertz.njit.edu
-
- In article <1ii3r8INNfea@iskut.ucs.ubc.ca> unruh@physics.ubc.ca (William Unruh) writes:
- >He means, if you already have a program running , can you detach it from
- >the window, and later reattach it. In Unix if you have a program running
- >in you window from the command line, you can detach it fromn the winsow
- >by halting it ( with ctrl-Z) and then issuing a bg command to restart it
- >in the background. fg will take a backgrond task and reattach it to the
- >window. Obviously if the task does console IO you can't detach it and
- >have it keep running- In Unix it halts waiting for you to reattach it.
-
- Unfortunately, OS/2 can't do this, and it would need a major
- restructuring to allow it. Under Unix, a background process is
- exactly the same as a foreground process, except that it gets
- suspended if it tries to read from the tty.
-
- Under OS/2, it's a different session type, and runs in a different
- operating environment. Since most apps don't check to see if their
- environment has changed before each I/O operation, such an on-the-fly
- change would cause apps to crash in all but the simplest cases. OS/2
- could be restructured to allow all this, but I don't think it's worth
- it when I can easilly start a minimized windowed session and bring
- that to the foreground when I want it.
-
- --
- |) David Charlap | .signature confiscated by FBI due to
- /|_ dic5340@hertz.njit.edu | an ongoing investigation into the
- ((|,) | source of these .signature virusses
- ~|~
-