home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.28 / text0007.txt < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.0 KB  |  27 lines

  1. Submitted-by: wolf@grasp1.univ-lyon1.fr (Christophe Wolfhugel)
  2.  
  3. The function getcwd() is in most cases a passive function, except
  4. in one (and perhaps others): SunOS 4.1.1.
  5.  
  6. This system, as indicated in the man pages clearly states that
  7. getcwd simply makes a system("pwd") to get the result.
  8.  
  9. I have encountered a problem with signals and this stuff: on SunOS,
  10. getcwd() generates a SIGCHLD, not on other signals.  This is highly
  11. distrurbing applications already having a SIGCHLD handler. I arrived
  12. in a dead loop: the SunOS "getcwd" wait call got over mine, thus
  13. causing my SIGCHLD reaper to block definitely on the wait
  14. (there were other childs active waiting for data).
  15.  
  16. Maybe it would be worth to add description about how the signals should
  17. behave when calling standardized functions. I checked the draft against
  18. any particular information on this, but it does not specify that
  19. getcwd() should not alter signals.
  20.  
  21. -- 
  22. Christophe Wolfhugel    /    Email: Christophe.Wolfhugel@univ-lyon1.fr
  23.  
  24.  
  25. Volume-Number: Volume 28, Number 9
  26.  
  27.