Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149206201
D49617.1789673031.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
483 B
Referenced Files
None
Subscribers
None
D49617.1789673031.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
@@ -496,7 +496,14 @@
free(keywords_info);
keywords_info = NULL;
- if (!all && nselectors == 0) {
+ if (all)
+ /*
+ * We have to display all processes, regardless of other
+ * options.
+ */
+ nselectors = 0;
+ else if (nselectors == 0) {
+ /* Default is to request our processes only. */
uidlist.l.ptr = malloc(sizeof(uid_t));
if (uidlist.l.ptr == NULL)
xo_errx(1, "malloc failed");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 17, 7:23 PM (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29737615
Default Alt Text
D49617.1789673031.diff (483 B)
Attached To
Mode
D49617: ps(1): Make '-a' and '-A' always show all processes
Attached
Detach File
Event Timeline
Log In to Comment