Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
KingOfCoders
4 months ago
|
parent
|
context
|
favorite
| on:
Why bother with argv[0]?
I use argv[0] to monitor the binary by itself and restart when it has changed.
actionfromafar
4 months ago
[–]
How? Checking and storing a checksum, or just file change metadata?
marcosdumay
4 months ago
|
parent
[–]
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: