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

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!csus.edu!netcom.com!kemnitz
  2. From: kemnitz@netcom.com (Greg Kemnitz)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: Xview and process blocking?
  5. Message-ID: <m1+nw9c.kemnitz@netcom.com>
  6. Date: 22 Aug 92 19:16:34 GMT
  7. References: <3bbffny@openlook.Unify.Com> <45_nx0_.kemnitz@netcom.com>
  8. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  9. Lines: 36
  10.  
  11. In article <45_nx0_.kemnitz@netcom.com> kemnitz@netcom.com (Greg Kemnitz) writes:
  12. =In article <3bbffny@openlook.Unify.Com> fgreco@shearson.com (Frank Greco) writes:
  13. ==Does anyone have any suggestions as to how to block the parent process
  14. ==while the child runs in an XView environment?
  15. ==
  16. ==The parent process is an XView application which *must* wait until the
  17. ==child process terminates (eg, a compile).  I need to have the same
  18. ==behavior as system(); I need to fork()/exec() a shell that runs the
  19. ==child and optionally waits/doesn't wait for the child to terminate (ie,
  20. ==the appended '&').
  21. ==
  22. ==All of my current attempts have either gotten a no-waiting version,
  23. ==or the notifier goes into an infinite loop ignoring all SIGTERM signals.
  24. ==
  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. ==
  28. ==Thanks,
  29. ==
  30. ==Frank G.
  31. ===-=-=-=-=-=-=-=-=-=
  32. ==
  33. =
  34. =If my memory serves me right, it is something like this,
  35. =
  36. =if((pid = fork()) == 0)
  37. =   do something
  38. =   wid = wait(&pid);
  39.  
  40.  
  41. I guess I am a stranger to Xview. I remember something I read
  42. once before that Xview uses Xlib only and does not use
  43. Xtoolkit which means users losses a lot of functions such as
  44. XtGrabButton, XtGrabKey, XtGrabKeyboard, XtGrabPointer.
  45. By using these functions users can freeze everything which is
  46. what Frank wanted.
  47.