3 ms·
I use argv[0] to monitor the binary by itself and restart when it has changed.
by KingOfCoders 2y ago
I use argv[0] to monitor the binary by itself and restart when it has changed.
- actionfromafar 2y agoHow? Checking and storing a checksum, or just file change metadata?
- marcosdumay 2y agoWell, 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.