home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!kirk.fmi.uni-passau.de!friedric
- From: friedric@kirk.fmi.uni-passau.de (Carsten Friedrich)
- Subject: atexit, signal
- Message-ID: <1992Jul21.200716.9768@tom.rz.uni-passau.de>
- Keywords: atexit signal
- Sender: news@tom.rz.uni-passau.de (News-Operator)
- Nntp-Posting-Host: uhura.fmi.uni-passau.de
- Organization: University of Passau, Germany
- Date: Tue, 21 Jul 1992 20:07:16 GMT
- Lines: 33
-
- hi,
-
- i don't know if my questions belong to comp.lang.c++ or comp.lang.c,
- as they are both standart c, but compiled with g++.
- so i'm posting it to both. hope you forgive me.
-
- 1) in my program i'm waiting for a child to exit:
-
- void ttt()
- {
- do_something();
- }
-
- .
- .
- signal(SIGCHLD, ttt);
- .
- .
-
- after do_something() my parent process terminates, but as far as
- i understood the man-pages, it should continue, where it was
- interrupted before :(. can anyone tell me what i'm doing wrong ?
-
- 2.) K&R and stdlib.h say there is a function called atexit. but
- my linker complains that there isn't. any ideas ???
-
- i'm using g++ version 2.0 to 2.2
-
- greetings,
- carsten
-
- friedric@kirk.fmi.uni-passau.de
- friedric@forwiss.uni-passau.de
-