diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/respawn | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/respawn b/contrib/respawn index 1b914ea..4126cdb 100644 --- a/contrib/respawn +++ b/contrib/respawn @@ -18,6 +18,10 @@ case "$1" in esac while :; do - "$@" + "$@" || err=$? + case $err in + # Usually Ctrl+C interrupt. + 12[7-9]|130) exit 0 + esac [ "$delay" ] && sleep "$delay" done |