mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
force quit on second Ctrl+C
This commit is contained in:
parent
eecd13476c
commit
a69852bdfc
|
@ -3607,7 +3607,10 @@ static CServer *CreateServer() { return new CServer(); }
|
||||||
|
|
||||||
void HandleSigInt(int Param)
|
void HandleSigInt(int Param)
|
||||||
{
|
{
|
||||||
InterruptSignaled = true;
|
if(InterruptSignaled)
|
||||||
|
exit(1);
|
||||||
|
else
|
||||||
|
InterruptSignaled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, const char **argv) // ignore_convention
|
int main(int argc, const char **argv) // ignore_convention
|
||||||
|
|
Loading…
Reference in a new issue