RawrOmg Posted February 1, 2009 Share Posted February 1, 2009 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?? Link to comment Share on other sites More sharing options...
Inverted Posted February 1, 2009 Share Posted February 1, 2009 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now