projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
658eb5a
)
tools/accounting/procacct: fix minor errors
author
zhang jiao
<zhangjiao2@cmss.chinamobile.com>
Tue, 3 Dec 2024 02:05:50 +0000
(10:05 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 13 Jan 2025 04:20:59 +0000
(20:20 -0800)
The logfile option was documented but not working. Add it and optimized
the while loop.
Link:
https://lkml.kernel.org/r/20241203020550.3145-1-zhangjiao2@cmss.chinamobile.com
Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Reviewed-by: Dr. Thomas Orgis <thomas.orgis@uni-hamburg.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/accounting/procacct.c
patch
|
blob
|
history
diff --git
a/tools/accounting/procacct.c
b/tools/accounting/procacct.c
index
90c4a37
..
e8dee05
100644
(file)
--- a/
tools/accounting/procacct.c
+++ b/
tools/accounting/procacct.c
@@
-274,12
+274,11
@@
int main(int argc, char *argv[])
int maskset = 0;
char *logfile = NULL;
int cfd = 0;
- int forking = 0;
struct msgtemplate msg;
- while (
!forking
) {
- c = getopt(argc, argv, "m:vr:");
+ while (
1
) {
+ c = getopt(argc, argv, "m:vr:
w:
");
if (c < 0)
break;