FreeBSD Bugzilla – Attachment 13639 Details for
Bug 25855
/bin/ps issue when output isn't to 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), 1012 bytes, created by
fracture
on 2001-03-16 20:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
fracture
Created:
2001-03-16 20:10:01 UTC
Size:
1012 bytes
patch
obsolete
>diff -crN /usr/src/bin/ps/ps.c ps/ps.c >*** /usr/src/bin/ps/ps.c Sat Jul 8 05:14:43 2000 >--- ps/ps.c Fri Mar 16 10:56:18 2001 >*************** >*** 127,139 **** > > (void) setlocale(LC_ALL, ""); > >! if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && >! ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && >! ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || >! ws.ws_col == 0) >! termwidth = 79; >! else >! termwidth = ws.ws_col - 1; > > if (argc > 1) > argv[1] = kludge_oldps_options(argv[1]); >--- 127,143 ---- > > (void) setlocale(LC_ALL, ""); > >! if (isatty(STDOUT_FILENO)) { >! if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && >! ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && >! ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || >! ws.ws_col == 0) >! termwidth = 79; >! else >! termwidth = ws.ws_col - 1; >! } else { >! termwidth = UNLIMITED; >! } > > if (argc > 1) > argv[1] = kludge_oldps_options(argv[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 25855
: 13639