[Toybox] [PATCH] ps: don't query for terminal size if not a tty
Josh Gao
jmgao at google.com
Mon Mar 27 15:59:35 PDT 2017
>From an internal bug:
$ adb shell
# set terminal width to 68 chars
sailfish:/ $ ps -A | grep init
root 1 0 12344 1556 SyS_epoll+ 0 S init
# reduce terminal width to 67 chars
sailfish:/ $ ps -A | grep init
1|sailfish:/ $
Patch attached to check isatty(1) before getting the terminal size.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170327/66839dba/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ps-tty.patch
Type: text/x-patch
Size: 1012 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170327/66839dba/attachment-0003.bin>
More information about the Toybox
mailing list