Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102807638
D47561.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
712 B
Referenced Files
None
Subscribers
None
D47561.diff
View Options
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1268,7 +1268,6 @@
saveuser(KINFO *ki)
{
char tdname[COMMLEN + 1];
- char *argsp;
ki->ki_valid = 1;
@@ -1278,14 +1277,11 @@
if (needcomm) {
if (ki->ki_p->ki_stat == SZOMB) {
ki->ki_args = strdup("<defunct>");
- } else if (ki->ki_p->ki_args != NULL) {
+ } else {
(void)snprintf(tdname, sizeof(tdname), "%s%s",
ki->ki_p->ki_tdname, ki->ki_p->ki_moretdname);
ki->ki_args = fmt(kvm_getargv, ki,
ki->ki_p->ki_comm, tdname, COMMLEN * 2 + 1);
- } else {
- asprintf(&argsp, "(%s)", ki->ki_p->ki_comm);
- ki->ki_args = argsp;
}
if (ki->ki_args == NULL)
xo_errx(1, "malloc failed");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 11:00 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14637024
Default Alt Text
D47561.diff (712 B)
Attached To
Mode
D47561: ps.1: restore always true if predicate
Attached
Detach File
Event Timeline
Log In to Comment