1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 08:50:25 +00:00

Fix _EXIT race condition that prevents exit; make _EXIT work on Linux.

This commit is contained in:
Luke Ceddia 2016-01-21 00:37:27 +11:00
parent c84bc3b981
commit b0edf45d47
2 changed files with 4 additions and 4 deletions

View file

@ -23845,7 +23845,7 @@ int32 func__exit(){
exit_blocked=1;
static int32 x;
x=exit_value;
exit_value=0;
if (x) exit_value = 0;
return x;
}

View file

@ -1323,8 +1323,8 @@ void FGAPIENTRY glutMainLoopEvent( void )
if( (Atom) event.xclient.data.l[ 0 ] == fgDisplay.DeleteWindow )
{
GETWINDOW( xclient );
fgDestroyWindow ( window );
qb64_custom_event(QB64_EVENT_CLOSE,0,0,0,0,0,0,0,0,NULL,NULL);
/* fgDestroyWindow ( window );
if( fgState.ActionOnWindowClose == GLUT_ACTION_EXIT )
{
@ -1333,8 +1333,8 @@ void FGAPIENTRY glutMainLoopEvent( void )
}
else if( fgState.ActionOnWindowClose == GLUT_ACTION_GLUTMAINLOOP_RETURNS )
fgState.ExecState = GLUT_EXEC_STATE_STOP;
return;
*/
}
break;