FreeBSD Bugzilla – Attachment 180064 Details for
Bug 217159
ps default to 79 characters can break ps|grep in shell scripts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to set unlimited terminal size if we can't determine terminal characteristics
ps.patch (text/plain), 346 bytes, created by
Deepak Nagaraj
on 2017-02-17 07:37:28 UTC
(
hide
)
Description:
Patch to set unlimited terminal size if we can't determine terminal characteristics
Filename:
MIME Type:
Creator:
Deepak Nagaraj
Created:
2017-02-17 07:37:28 UTC
Size:
346 bytes
patch
obsolete
>--- ps.c 2017-02-17 07:29:08.384550000 +0000 >+++ ps.new.c 2017-02-17 07:29:03.409672000 +0000 >@@ -198,7 +198,7 @@ > ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && > ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || > ws.ws_col == 0) >- termwidth = 79; >+ termwidth = UNLIMITED; > else > termwidth = ws.ws_col - 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 217159
: 180064