Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!ucsd!mvb.saic.com!ncr-sd!ncrcae!hubcap!news From: ibmman@eng.clemson.edu ((the) IBMMAN) Newsgroups: comp.os.os2.programmer Subject: Re: questions on os/2 Message-ID: <1991Mar29.141629.9239@hubcap.clemson.edu> Date: 29 Mar 91 14:16:29 GMT References: <39443@ubvax.UB.Com> Sender: news@hubcap.clemson.edu (news) Organization: Clemson University Lines: 24 From article <39443@ubvax.UB.Com>, by yeh@ubvax.UB.Com (David Yeh): > 1. Is there any way to kill an OS/2 process which is currently blocking? > I have tried the following methods but they all failed: > a. close the window; > b. using "kill" in ps utility; > c. using DosKillProcess(). We have a utility called KILL.EXE which simply calls DosKillProcess. It has never failed for me. > 2. Is there any function calls in OS/2 performing exactly the same > functionality as "fork()" does in UNIX? I have used DosExecPgm(), > spawn(), but the child process they created did not really inherit > everything its parent process has. I have never heard of one, and I think it would be extremely difficult to write one due to the fact that there can be multiple data segments. I'm not typically a Unix programmer, but if I recall properly (correct me if I'm wrong) fork()'s children inherit everything from the parent including their very own copy of the data block (and if you order now, we'll throw in a free disk pack... ;) . Cheers, Q