home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11403 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.2 KB  |  46 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!kirk.fmi.uni-passau.de!friedric
  3. From: friedric@kirk.fmi.uni-passau.de (Carsten Friedrich)
  4. Subject: atexit, signal
  5. Message-ID: <1992Jul21.200716.9768@tom.rz.uni-passau.de>
  6. Keywords: atexit signal
  7. Sender: news@tom.rz.uni-passau.de (News-Operator)
  8. Nntp-Posting-Host: uhura.fmi.uni-passau.de
  9. Organization: University of Passau, Germany
  10. Date: Tue, 21 Jul 1992 20:07:16 GMT
  11. Lines: 33
  12.  
  13. hi,
  14.  
  15. i don't know if my questions belong to comp.lang.c++ or comp.lang.c,
  16. as they are both standart c, but compiled with g++.
  17. so i'm posting it to both. hope you forgive me.
  18.  
  19. 1) in my program i'm waiting for a child to exit:
  20.  
  21. void ttt()
  22. {
  23.     do_something();
  24. }    
  25.  
  26. .
  27. .
  28. signal(SIGCHLD, ttt);
  29. .
  30. .
  31.  
  32. after do_something() my parent process terminates, but as far as
  33. i understood the man-pages, it should continue, where it was
  34. interrupted before :(. can anyone tell me what i'm doing wrong ?
  35.  
  36. 2.) K&R and stdlib.h say there is a function called atexit. but
  37.     my linker complains that there isn't. any ideas ???
  38.  
  39. i'm using g++ version 2.0 to 2.2
  40.  
  41.     greetings,
  42.         carsten
  43.  
  44. friedric@kirk.fmi.uni-passau.de
  45. friedric@forwiss.uni-passau.de
  46.