Prevent server CTRL+C closing.
#1

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
Reply
#2

Why are you pressing ctrl-c then?

There's no preventing it.
Reply
#3

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Why are you pressing ctrl-c then?

There's no preventing it.
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
Reply
#4

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...
Reply
#5

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
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...
AGAIN, because pressing CTRL+C is how you CCCClose a console application,,, thats how you do it,, if I use the X button (or CTRL+Z on linux), it just kills the server,, when you do CTRL+C the server actually executes the "serverExit" and "filterscriptExit" events and THEN closes....

rt-2
Reply
#6

What are you not getting here?
Reply
#7

what is this guy on..
Reply
#8

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
Reply
#9

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...
Reply
#10

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Then there is no preventing it...
I think most likely a dll plugin would be able to do that,, rather than pawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)