Posts: 342
Threads: 34
Joined: Jun 2011
Reputation:
0
Hi,
Is there a way to block the console from closing when doing CTRL+C.
I know its possible in most language like NodeJS etc..
Thank you,
rt-2
Posts: 6,242
Threads: 8
Joined: Jun 2008
Why are you pressing ctrl-c then?
There's no preventing it.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by rt-2
Because when you click X it doesn't execute OnServerExit,
When you do CTRL+C it does,,,
Maybe there is something I can put in OnServerExit to stop the termination.
Thank you,
rt-2
|
There isn't as Ctrl-C is a stop process key combo. It's nothing to do with the server executable, hence why when you use a command in command prompt, and have the command 'hang', you press ctrl-c, and you are able to stop it.
Now really, why on earth are you even pressing ctrl-c in the first instance...
Posts: 6,242
Threads: 8
Joined: Jun 2008
What are you not getting here?
Posts: 45
Threads: 4
Joined: Jun 2016
Posts: 342
Threads: 34
Joined: Jun 2011
Reputation:
0
That's actually basic computer, back in the 80's that's what you'd use,, if you guys can't understand CTRL+C to Close an application than you don't understand BASIC computing (no pun intended xD).
rt-2
Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by rt-2
That's actually basic computer, back in the 80's that's what you'd use,, if you guys can't understand CTRL+C to Close an application than you don't understand BASIC computing (no pun intended xD).
rt-2
|
Then there is no preventing it...