home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!decwrl!csus.edu!csusac!unify!openlook!openlook-request
- Message-ID: <5safnpo@openlook.Unify.Com>
- Newsgroups: comp.windows.open-look
- Distribution: world
- Date: Fri, 21 Aug 1992 10:09:28 -0400
- From: klg!ed@uunet.uu.net (Edward Lycklama - KL Group Inc.)
- Sender: news@Unify.Com
- Subject: Re: Xview and process blocking?
- Lines: 43
-
- > From uunet.uu.net!owner-openlook@uunet.ca Fri Aug 21 09:13:05 1992
- > Date: Thu, 20 Aug 1992 18:16:51 -0400
- > From: fgreco@shearson.com (Frank Greco)
- > To: openlook@unify.com
- > Subject: Xview and process blocking?
- >
- > 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 what you want is the user to not interact with the parent process,
- why not set FRAME_BUSY to true on the parent's base frame?
- This could be done in conjunction with the notify_set_wait3_func() -
- set frame to BUSY when you call this, and when the notify occurs,
- set FRAME_BUSY to FALSE.
-
- BTW, I've never had any problem with system(), in either SunView or XView,
- but I know you're not supposed to do this.
-
- Ed Lycklama
-
- KL Group Inc. | Phone: (416) 594-1026 Ext. 24
- 134 Adelaide St. E, Suite 204 | Fax: (416) 594-1919
- Toronto, Ontario, M5C 1K9 | UUCP: eal@klg.com
- CANADA
-