projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b098161
)
Documentation/accounting/getdelays.c: fix endless loop
author
Marcus Meissner
<
[email protected]
>
Thu, 15 Jan 2009 21:51:00 +0000
(13:51 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 16 Jan 2009 00:39:37 +0000
(16:39 -0800)
When no option is passed to getdelays it just hangs, waiting
for a reply which will never come.
This patch prints usage() when no output marker is specified.
Signed-off-by: Marcus Meissner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
Documentation/accounting/getdelays.c
patch
|
blob
|
history
diff --git
a/Documentation/accounting/getdelays.c
b/Documentation/accounting/getdelays.c
index cc49400b4af899abf34b30cf955b52d378617948..7ea231172c850db1a7eed7127d0bb8a036e56364 100644
(file)
--- a/
Documentation/accounting/getdelays.c
+++ b/
Documentation/accounting/getdelays.c
@@
-392,6
+392,10
@@
int main(int argc, char *argv[])
goto err;
}
}
+ if (!maskset && !tid && !containerset) {
+ usage();
+ goto err;
+ }
do {
int i;