Commit Graph

14 Commits

Author SHA1 Message Date
imp
691010efad compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
bde
5350fb0d8b Removed old bogus prerequisite <sys/select.h>. Cleaned up #include mess. 1997-03-19 04:44:07 +00:00
roberto
d6216e2c0e 1. change tty handling from sgttyb to termios,
2. fix a potential buffer oflow,
3. makes watch(8) conform to sysexits(3).

Not a strong 2.2 candidate even if it would be nice.

Reviewed by:	joerg, imp
1997-03-13 08:35:45 +00:00
jkh
a334cda535 Remove breakage of 1.8.2.2, choose slightly better character for quit. 1996-12-30 09:01:50 +00:00
jkh
fe58599a09 Use RAW, not CBREAK 1996-12-17 15:26:40 +00:00
jkh
19c8e3590e I have added a '-n' flag to the watch(8) command. This option
disables the ability to interactively select a new tty.  I have also
removed a check for uid == 0 because it gets in the way of using suid
mode based access control.  Watch (8)is only runnable by root, so this
does not really change things much.

Closes PR#2131

Submitted-By: adrian@virginia.edu
1996-12-02 12:32:46 +00:00
jkh
2dac23e9f4 Properly save and restore the terminal characters! 1996-03-01 18:21:41 +00:00
jkh
d4004feaee Map ^C and ^\ (INTR and QUIT) to ^Q so that you can actually send these
guys to a watched process.  Useful if you're monitoring someone who's
started doing something you'd really like them to stop immediately. :)
Suggested by:	Phillip White <philw@megasoft.tic.ab.ca>
1995-12-16 10:07:10 +00:00
ache
a0d781c95c Add setlocale LC_TIME 1995-10-26 23:15:14 +00:00
ache
56e4caf676 Add missing ospeed initialization 1995-08-04 07:17:24 +00:00
rgrimes
4f960dd75f Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
ugen
6becd688af same 1995-02-27 19:48:19 +00:00
pst
309dab67e7 Update to use new calling conventions 1995-02-25 20:14:31 +00:00
ugen
d722999cd2 This is watch - programm to work with /dev/snp,
it still lacks manpage-i will commit it today later.
For now to test try: watch [ttyname] :)
1995-02-17 14:36:03 +00:00