pstree: use stdin for screen size detection

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
1_19_stable
Denys Vlasenko 2010-12-06 12:54:24 +01:00
parent 31905f9477
commit 86aa803047
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ int pstree_main(int argc UNUSED_PARAM, char **argv)
INIT_G();
get_terminal_width_height(1, &G.output_width, NULL);
get_terminal_width_height(0, &G.output_width, NULL);
opt_complementary = "?1";
getopt32(argv, "p");