Hacker News new | past | comments | ask | show | jobs | submit login

I use argv[0] to monitor the binary by itself and restart when it has changed.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: