delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/07/04/16:09:45

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: Bug in onexit(), and fix
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Sat, 4 Jul 92 13:10:02 PDT
Mailer: Elm [revision: 66.25]

This may have been reported before, I can't remember.  If not:

The atexit() and onexit() functions do not work in djgpp 1.06.  The
problem is in /djgpp/libsrc/c/lib/onexit.c.  Here is the simple patch
to fix the problem.


*** onexit.ori	Thu Jul 02 23:42:32 1992
--- onexit.c	Thu Jul 02 23:42:56 1992
***************
*** 23,28 ****
--- 23,29 ----
    a->next = __atexit;
    a->function = func;
    a->arg = arg;
+   __atexit = a;
  }
  
  atexit(a)


--
				Eric Backus
				ericb%hplsla AT hplabs DOT hp DOT com
				(206) 335-2495

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019