What Does This Pull Request Do?
Fixes A Strange Instance Where FSNotify Send Two Events Even If File Was Modified Once See This Issue,
Also Fixes #4 Which Ensures That A Previous Process Has Been Killed Before Starting Another One Or Exiting.
Where Should The Reviewer Start?
rld.go Has Multiple Changes Which:
- Removes An Unused Done Channel (Which I Presume Was For Blocking Till SIGINT Is Received).
- Adds A Global Process Variable For Monitoring New Spawned Process.
- Add A Timer Variable For Monitoring Multiple Writes To A File
- killPid Function For Killing The Current Process Before Starting A New One
How Should This Be Manually Tested?
Run The Reloader And Monitor A File Then Proceed To Make Changes To It Using A Text Editor (Or Exit Rld). On File Close, The Previous Process Will Be Killed And A New One Started.