Cleaning up read/monitor/interrupt.
Now you don't need to specify a default read count. Now, by default, we print the pid out in sendCmd() which allows us to snarf it later and set lastPid correctly. Now, we wrap os.kill() in a try block, so that if the process is already gone we don't get an exception.
Loading
Please register or sign in to comment