Jump to content

Recommended Posts

Posted

Im making a server restarter for a steam game.

It uses a program called srcds.exe to run the server and I want to check if the server goes down or not or if it freezes up

When it goes down or freezes up I want it to execute a function...Any way to do it??

Posted

Maybe you could use ProcessGetStats every few seconds in your loop (in the other thread you made) and compare the results with the previous ones. And if the "operations" count hasn't changed then it's frozen ?

Could be hard to test though.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...