home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!decwrl!csus.edu!csusac!unify!openlook!openlook-request
- Message-ID: <5jafhs7@openlook.Unify.Com>
- Newsgroups: comp.windows.open-look
- Distribution: world
- Date: Fri, 21 Aug 92 14:55:09 EDT
- From: fgreco@fis1026.shearson.com (Frank Greco)
- Sender: news@Unify.Com
- Subject: Re: Xview and process blocking?
- Lines: 33
-
- > 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?
-
- It's much more than this. Here's the scenario:
-
- FileOpen(file)
- char *file;
- {
- if file not local
- ftp it
-
- open file
- }
-
- I want to spawn off the ftp, but my open has to "wait" until
- the ftp is complete. If it doesn't, the open will fail. There
- is another scenario where I have to wait for a "compile" to
- finish before continuing; but its the same type of problem.
-
- I really don't care that the UI is frozen until this call
- finishes (yeah... I know... not a good [single-threaded] X
- citizen and all that); I just need to "waitfor()" the child to
- finish without mangling the flow too much.
-
- > BTW, I've never had any problem with system(), in either SunView or XView,
- > but I know you're not supposed to do this.
-
- Yes. Me too. But the XVPM says its a no-no, understandably because
- system() uses wait() and signal() internally.
-
- Frank G.
- =-=-=-=-=-=-=-=-=-=
-
-