Path: utzoo!attcan!uunet!cs.utexas.edu!texbell!uhnix1!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.arch Subject: Re: Spawn is impossible to define (was Re: vfork) Message-ID: Date: 2 Aug 90 13:23:18 GMT References: <5962@titcce.cc.titech.ac.jp> <5971@titcce.cc.titech.ac.jp> <.D+4Y53@ggpc2.ferranti.com> <5978@titcce.cc.titech.ac.jp> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 36 In article <5978@titcce.cc.titech.ac.jp> mohta@necom830.cc.titech.ac.jp (Masataka Ohta) writes: > In article <.D+4Y53@ggpc2.ferranti.com> > peter@ficc.ferranti.com (Peter da Silva) writes: > >Wrong on two counts. Setting a deferred signal (inherited as caught) solves > >the case *I* mentioned. The one *you* came up with can be solved with normal > >UNIX signals, and I explained how. If you can't remember a message I posted > >only a few days ago I'm not going to bother repeating it. > You once (and still) failed to show a definition of spawn. A. That's not what you were asking in the message I was following up to. B. I already did. spawn*(fdset, *) Where * is replaced by the equivalents from exec*. The "fdset" is no uglier in spawn than select. By making every other change to the process image reversible (which is in itself a very useful feature) no other arguments are needed. > Then, this time, you failed to show code sequence of proper signal > inheritance. What, to have the signal SIG_DFL in the child and SIG_IGN in the parent? You call "signal(dummy, SIGwhatever)" where dummy() just resets the signal and ignores it, then call spawn. I explained that three messages back, now. I'm not responsible for your memory... perhaps you should save these articles. > Now, you should realize what you are trying to do is impossible. No, just difficult. Like many things in small operating systems running on hardware with no MMU, you have to work harder to accomplish the same thing. I'm not prepared to double the price of a product just so you can fit a full UNIX kernel in the PROMs. -- Peter da Silva. `-_-' +1 713 274 5180. 'U`