home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!smurf.sub.org!flatlin!bad
- From: bad@flatlin.ka.sub.org (Christoph Badura)
- Subject: Re: Signal Handlers and malloc()
- Organization: Guru Systems/Funware Department
- Date: Tue, 10 Nov 1992 19:05:51 GMT
- Message-ID: <BxIL1s.4py@flatlin.ka.sub.org>
- References: <1992Nov9.064910.778@noose.ecn.purdue.edu>
- Lines: 17
-
- In <1992Nov9.064910.778@noose.ecn.purdue.edu> kudva@ecn.purdue.edu (Gautham K. Kudva) writes:
-
- > I've written a signal handler for the VTALRM signal. The signal
- >handler calls another routine which does quite a bit of work. This program
- >start crashing in an unpredictable fashion.
-
- You should rewrite your program so that it only sets a flag variable
- in the signal handler and do the "quite a bit of work" out side the
- signal handler in the main part of the program.
-
- This is the only way to make the program work reliably.
-
- --
- Christoph Badura --- bad@flatlin.ka.sub.org
-
- AIX is a better... is a better... is a better... OpenSystem.
- IBM Rep at GUUG Symposium '92
-