home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gossip.pyramid.com!pyramid!unify!caa
- From: caa@Unify.Com (Chris A. Anderson)
- Newsgroups: comp.os.os2.misc
- Subject: Re: Detach command.
- Message-ID: <suvaqiz@Unify.Com>
- Date: 11 Jan 93 17:14:34 GMT
- References: <1ii3r8INNfea@iskut.ucs.ubc.ca> <1993Jan7.230727.1343@njitgw.njit.edu> <1993Jan08.075225.9277@kub.nl>
- Sender: news@unify.com
- Reply-To: caa@unify.com (Chris Anderson)
- Followup-To: comp.os.os2.misc
- Organization: Unify Corporation, Sacramento, California
- Lines: 28
-
- In article <1993Jan08.075225.9277@kub.nl> hoppie@kub.nl (Jeroen Hoppenbrouwers) writes:
- > Eh? I always thought that being able to push a running UNIX process in the background
- > with Ctrl-Z and call it back later with FG, together with the BG and JOBS commands,
- > were UNIX *shell* commands, and thus implemented by the shell, not by the UNIX
- > kernel?!? If I'm wrong, please tell me.
-
- There's two fundamental things going on here. Unix stops a process from
- executing by sending it a SIGSTOP and starts it up again by issuing a
- SIGCONT -- that has to be implemented in the kernel. The fg/bg just
- removes the controlling terminal. So, you need to have the ability to
- stop and continue a process built into the kernel for the job-control
- commands that csh has to work.
-
- > In this case, just get an OS/2 port of a csh of some kind that has job control built-in.
- > I know that OS/2 has more types of sessions than UNIX, but without job control in the
- > shell, it wouldn't work anyway. If you just run OS/2 text mode aps, I can imagine the
- > shell arbitrating console access easily. And running other (PM) jobs from a shell
- > does not need BG/FG switching -- being an PM app.
-
- Well, you'd need a different concept of signals, the idea of a pty, and
- no classification of processes under OS/2. That would change OS/2
- completely.
-
- Chris
- --
- +------------------------------------------------------------+
- | Chris Anderson, Unify Corp. caa@unify.com |
- +------------------------------------------------------------+
-