[gambit-list] Take 2 : __cleanup() problem (OS X 10.6.6 / Gambit-C 4.6.0)

Marc Feeley feeley at iro.umontreal.ca
Mon Jan 17 16:20:19 EST 2011


I have done some refactoring of os_io.c to prevent closing file descriptors that were open when ___setup was called.  The changes have been pushed to the repository.  Could you please repeat your experiments with the new code?

Marc

On 2011-01-15, at 2:32 PM, David Dreisigmeyer wrote:

> I guess I don't understand why this doesn't print or sleep either:
> 
> ___EXP_FUNC(void,___cleanup) ___PVOID
> {
> /*
>  * Only do cleanup once after successful setup.
>  */
> 
> printf ("setup_state : %i \n" , setup_state);
> fflush (stdout);
> sleep(30);
> 
> if (setup_state != 1)
>   return;
> 
> setup_state = 2;
> 
> ___cleanup_mem ();
> ___cleanup_os ();
> }




More information about the Gambit-list mailing list