home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!csus.edu!netcom.com!kemnitz
- From: kemnitz@netcom.com (Greg Kemnitz)
- Newsgroups: comp.windows.open-look
- Subject: Re: Xview and process blocking?
- Message-ID: <m1+nw9c.kemnitz@netcom.com>
- Date: 22 Aug 92 19:16:34 GMT
- References: <3bbffny@openlook.Unify.Com> <45_nx0_.kemnitz@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Lines: 36
-
- In article <45_nx0_.kemnitz@netcom.com> kemnitz@netcom.com (Greg Kemnitz) writes:
- =In article <3bbffny@openlook.Unify.Com> fgreco@shearson.com (Frank Greco) writes:
- ==Does anyone have any suggestions as to how to block the parent process
- ==while the child runs in an XView environment?
- ==
- ==The parent process is an XView application which *must* wait until the
- ==child process terminates (eg, a compile). I need to have the same
- ==behavior as system(); I need to fork()/exec() a shell that runs the
- ==child and optionally waits/doesn't wait for the child to terminate (ie,
- ==the appended '&').
- ==
- ==All of my current attempts have either gotten a no-waiting version,
- ==or the notifier goes into an infinite loop ignoring all SIGTERM signals.
- ==
- ==I'm trying to be a good XView citizen and not use good 'ole system(),
- ==which, btw, seems to work all the time...
- ==
- ==Thanks,
- ==
- ==Frank G.
- ===-=-=-=-=-=-=-=-=-=
- ==
- =
- =If my memory serves me right, it is something like this,
- =
- =if((pid = fork()) == 0)
- = do something
- = wid = wait(&pid);
-
-
- I guess I am a stranger to Xview. I remember something I read
- once before that Xview uses Xlib only and does not use
- Xtoolkit which means users losses a lot of functions such as
- XtGrabButton, XtGrabKey, XtGrabKeyboard, XtGrabPointer.
- By using these functions users can freeze everything which is
- what Frank wanted.
-