3drobotics / solo-cli

Solo command line utilities.
20 stars 36 forks source link

command: ensure script on Solo terminates on ssh disconnect #39

Closed peterbarker closed 8 years ago

peterbarker commented 8 years ago

getting a pty ensures the scripts running on Solo have a controlling tty and will get a SIGHUP when it gets disconnected

Without this you can accumulate running scripts on Solo

hamishwillee commented 8 years ago

This appears to work fine - I tested this by interrupting a running script and confirming that the process was indeed removed afterwards