]> granicus.if.org Git - procps-ng/commit
fixed e and x options in watch
authorCraig Small <csmall@enc.com.au>
Tue, 3 Jan 2012 22:18:16 +0000 (09:18 +1100)
committerCraig Small <csmall@enc.com.au>
Tue, 3 Jan 2012 22:18:16 +0000 (09:18 +1100)
commitf776e591231ec894ede73b75a94565a034eda6bc
tree35af43b8a1e70cc1d53f220af3172c478ff5ba45
parent3388f65c036a94495ec2ce58bd8b4cee55969304
fixed e and x options in watch

The -e option would print a confusing error message. This is because
most error messages in watch are one word.  This fix makes a more
sensible message about what went wrong.

The -x option exited before the endwin() function was called, so if the
child process died the terminal was left in a funky state. endwin is now
called just before the exit(8) for the -x option.
watch.c