Red Hat Bugzilla – Bug 475963
slabtop -o is broken?
Last modified: 2016-05-31 21:37:11 EDT
Using slabtop with --once option erases curses window just after
displaying the contents, so in this way it's quite useles. There
should be no erase and the data should be displayed in stdout.
Issue present in procps-3.2.7-11.1.el5
+++ This bug was initially created as a clone of Bug #437476 +++
According to the slabtop(8) manual page:
Display the output once and then exit.
However, this is not the case:
# slabtop -o
# echo $?
--- Additional comment from email@example.com on 2008-09-24 06:08:57 EDT ---
I analyzed the problem, it is indeed a bug, and I found a solution:
the problem was, that the output went to curses and disappeared after
endwin(), so I managed to print it, when "-o" option is used, to stdout
Created attachment 326609 [details]
patch for slabtop -o
okay, patch ported to RHEL5 version of procps
fixed in procps-3.2.7-12.el5
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.