aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/watch
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2013-09-11 18:16:18 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2013-09-11 18:16:18 +0000
commitd466a5b069a40c37cec11dfd03fd46b30c4c9587 (patch)
treea3620d99f472deaa7f019c4324bb8f4e38ac4272 /usr.sbin/watch
parentd1d015864103b253b3fcb2f72a0da5b0cfeb31b6 (diff)
parent64c5de5483d0895b673ba6506d204762b8b11a60 (diff)
downloadsrc-d466a5b069a40c37cec11dfd03fd46b30c4c9587.tar.gz
src-d466a5b069a40c37cec11dfd03fd46b30c4c9587.zip
Merge head
Notes
Notes: svn path=/projects/bmake/; revision=255477
Diffstat (limited to 'usr.sbin/watch')
-rw-r--r--usr.sbin/watch/watch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index e69534de55c4..eecf0d32db2a 100644
--- a/usr.sbin/watch/watch.c
+++ b/usr.sbin/watch/watch.c
@@ -110,7 +110,6 @@ set_tty(void)
{
struct termios ntty;
- tcgetattr(std_in, &otty);
ntty = otty;
ntty.c_lflag &= ~ICANON; /* disable canonical operation */
ntty.c_lflag &= ~ECHO;
@@ -324,6 +323,8 @@ main(int ac, char *av[])
usage();
}
+ tcgetattr(std_in, &otty);
+
if (modfind("snp") == -1)
if (kldload("snp") == -1 || modfind("snp") == -1)
warn("snp module not available");