home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / openloo / 3549 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.9 KB

  1. Path: sparky!uunet!decwrl!csus.edu!csusac!unify!openlook!openlook-request
  2. Message-ID: <5safnpo@openlook.Unify.Com>
  3. Newsgroups: comp.windows.open-look
  4. Distribution: world
  5. Date: Fri, 21 Aug 1992 10:09:28 -0400
  6. From: klg!ed@uunet.uu.net (Edward Lycklama - KL Group Inc.)
  7. Sender: news@Unify.Com
  8. Subject: Re:  Xview and process blocking?
  9. Lines: 43
  10.  
  11. > From uunet.uu.net!owner-openlook@uunet.ca Fri Aug 21 09:13:05 1992
  12. > Date:     Thu, 20 Aug 1992 18:16:51 -0400
  13. > From: fgreco@shearson.com (Frank Greco)
  14. > To: openlook@unify.com
  15. > Subject: Xview and process blocking?
  16. > Does anyone have any suggestions as to how to block the parent process
  17. > while the child runs in an XView environment?
  18. > The parent process is an XView application which *must* wait until the
  19. > child process terminates (eg, a compile).  I need to have the same
  20. > behavior as system(); I need to fork()/exec() a shell that runs the
  21. > child and optionally waits/doesn't wait for the child to terminate (ie,
  22. > the appended '&').
  23. > All of my current attempts have either gotten a no-waiting version,
  24. > or the notifier goes into an infinite loop ignoring all SIGTERM signals.
  25. > I'm trying to be a good XView citizen and not use good 'ole system(),
  26. > which, btw, seems to work all the time...
  27. > Thanks,
  28. > Frank G.
  29. > =-=-=-=-=-=-=-=-=-=
  30.  
  31. If what you want is the user to not interact with the parent process,
  32. why not set FRAME_BUSY to true on the parent's base frame?
  33. This could be done in conjunction with the notify_set_wait3_func() -
  34. set frame to BUSY when you call this, and when the notify occurs,
  35. set FRAME_BUSY to FALSE.
  36.  
  37. BTW, I've never had any problem with system(), in either SunView or XView,
  38. but I know you're not supposed to do this.
  39.  
  40.  Ed Lycklama
  41.  
  42.  KL Group Inc.                       | Phone: (416) 594-1026 Ext. 24 
  43.  134 Adelaide St. E, Suite 204       | Fax:   (416) 594-1919
  44.  Toronto, Ontario, M5C 1K9           | UUCP:  eal@klg.com
  45.  CANADA 
  46.