]> granicus.if.org Git - procps-ng/commit
'slabtop -o' with stdin not a tty would complain
authorDerek Fawcus <dfawcus@brocade.com>
Thu, 15 Jan 2015 13:14:53 +0000 (13:14 +0000)
committerCraig Small <csmall@enc.com.au>
Sat, 24 Jan 2015 06:27:12 +0000 (17:27 +1100)
commit96c524990b1ec3ceeac249360b7654a8988f5912
tree4fd7b16e03bbc40aaf4179b8d6cafb127eaabf56
parent7610b3128e6ac40a9e14d9238584e79ece06bc96
'slabtop -o' with stdin not a tty would complain

When the command is executed in one shot mode (-o) with stdin
being something other than a terminal,  the tcgetattr() call
would fail,  and generate an error message. e.g.:

slabtop: terminal setting retrieval: Inappropriate ioctl for device
 Active / Total Objects (% used)    : 905319 / 915886 (98.8%)

Signed-off-by: Craig Small <csmall@enc.com.au>
slabtop.c