Hacker News new | ask | show | jobs
by KingOfCoders 661 days ago
I use argv[0] to monitor the binary by itself and restart when it has changed.
1 comments

How? Checking and storing a checksum, or just file change metadata?
Well, I'm not the GP , but probably with OS file change monitoring API, that changes for each OS but the maintream ones all have some.