FreeBSD Bugzilla – Attachment 121528 Details for
Bug 164535
[patch] ps(1) truncates command to screen size even when stdout is not a tty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 473 bytes, created by
Marcus Reid
on 2012-01-27 09:50:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Marcus Reid
Created:
2012-01-27 09:50:09 UTC
Size:
473 bytes
patch
obsolete
>--- bin/ps/ps.c.orig 2012-01-27 01:24:10.519024952 -0800 >+++ bin/ps/ps.c 2012-01-27 01:24:20.350023629 -0800 >@@ -187,6 +187,8 @@ > > if ((cols = getenv("COLUMNS")) != NULL && *cols != '\0') > termwidth = atoi(cols); >+ else if (isatty(STDOUT_FILENO) == 0) >+ termwidth = UNLIMITED; > else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && > ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && > ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) ||
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 164535
: 121528