home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / programm / 5234 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.0 KB  |  28 lines

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