diff options
author | Jim Warner <james.warner@comcast.net> | 2013-09-17 00:00:00 -0500 |
---|---|---|
committer | Jaromir Capik <jcapik@redhat.com> | 2013-09-17 20:27:02 +0200 |
commit | 4141efaf13254564f0377289bcf5a1a1389f60af (patch) | |
tree | 883cd9fd2d785326bcbb932bccd1f51e2e5ca022 | |
parent | e6bbcdb4926e83ecee33ffa84307be8c7cf10091 (diff) | |
download | procps-ng-4141efaf13254564f0377289bcf5a1a1389f60af.tar.gz |
top: restore the lost final newline when in Batch mode
This patch adds the final newline when exiting 'Batch'
mode. Interestingly, it has been missing since release
3.3.5 but undetected until the Redhat bugzilla report.
Reference(s):
https://bugzilla.redhat.com/show_bug.cgi?id=1008674
Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r-- | top/top.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -527,6 +527,7 @@ static void bye_bye (const char *str) { fputs(str, stderr); exit(EXIT_FAILURE); } + if (Batch) putp("\n"); exit(EXIT_SUCCESS); } // end: bye_bye |