summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch/watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/watch/watch.c')
-rw-r--r--usr.sbin/watch/watch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index b2572ff..af5b5ae 100644
--- a/usr.sbin/watch/watch.c
+++ b/usr.sbin/watch/watch.c
@@ -406,6 +406,7 @@ main(int ac, char *av[])
set_dev(dev_name);
} else
cleanup(-1);
+ break;
case SNP_DETACH:
case SNP_TTYCLOSE:
if (opt_reconn_close)
@@ -415,6 +416,7 @@ main(int ac, char *av[])
set_dev(dev_name);
} else
cleanup(-1);
+ break;
default:
nread = (unsigned)idata;
if (nread < (b_size / 2) && (b_size / 2) > MIN_SIZE) {
OpenPOWER on IntegriCloud