]> granicus.if.org Git - procps-ng/commit
watch: refactor code, add output_header() and run_command()
authorSami Kerola <kerolasa@iki.fi>
Sat, 10 Mar 2012 12:29:34 +0000 (13:29 +0100)
committerSami Kerola <kerolasa@iki.fi>
Fri, 16 Mar 2012 13:32:49 +0000 (14:32 +0100)
commit85e0a23347280bbc28841fe5638aca59133b5bb7
tree453aaa4df58c7e21ead27b46bd5c5ce90a766ec1
parentdbedc905fe3090a784f5277492036820b453f5fa
watch: refactor code, add output_header() and run_command()

The main() was starting to be quite long with deep indents.  Both
signs of clean up being welcome change.

FIXME: The comment also changes -g option to exit immediately,
when screen contents change.  This should be separated commit,
e.g. the stuff is not ready to be merged.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
watch.c