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 (); }