mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-18 09:25:15 +00:00
Fix _EXIT race condition that prevents exit; make _EXIT work on Linux.
This commit is contained in:
parent
c84bc3b981
commit
b0edf45d47
|
@ -23845,7 +23845,7 @@ int32 func__exit(){
|
||||||
exit_blocked=1;
|
exit_blocked=1;
|
||||||
static int32 x;
|
static int32 x;
|
||||||
x=exit_value;
|
x=exit_value;
|
||||||
exit_value=0;
|
if (x) exit_value = 0;
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1323,8 +1323,8 @@ void FGAPIENTRY glutMainLoopEvent( void )
|
||||||
if( (Atom) event.xclient.data.l[ 0 ] == fgDisplay.DeleteWindow )
|
if( (Atom) event.xclient.data.l[ 0 ] == fgDisplay.DeleteWindow )
|
||||||
{
|
{
|
||||||
GETWINDOW( xclient );
|
GETWINDOW( xclient );
|
||||||
|
qb64_custom_event(QB64_EVENT_CLOSE,0,0,0,0,0,0,0,0,NULL,NULL);
|
||||||
fgDestroyWindow ( window );
|
/* fgDestroyWindow ( window );
|
||||||
|
|
||||||
if( fgState.ActionOnWindowClose == GLUT_ACTION_EXIT )
|
if( fgState.ActionOnWindowClose == GLUT_ACTION_EXIT )
|
||||||
{
|
{
|
||||||
|
@ -1333,8 +1333,8 @@ void FGAPIENTRY glutMainLoopEvent( void )
|
||||||
}
|
}
|
||||||
else if( fgState.ActionOnWindowClose == GLUT_ACTION_GLUTMAINLOOP_RETURNS )
|
else if( fgState.ActionOnWindowClose == GLUT_ACTION_GLUTMAINLOOP_RETURNS )
|
||||||
fgState.ExecState = GLUT_EXEC_STATE_STOP;
|
fgState.ExecState = GLUT_EXEC_STATE_STOP;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue