Skip to content

Commit 65a67bd

Browse files
msmeissntorvalds
authored andcommitted
Documentation/accounting/getdelays.c: fix endless loop
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 <meissner@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b098161 commit 65a67bd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Documentation/accounting/getdelays.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ int main(int argc, char *argv[])
392392
goto err;
393393
}
394394
}
395+
if (!maskset && !tid && !containerset) {
396+
usage();
397+
goto err;
398+
}
395399

396400
do {
397401
int i;

0 commit comments

Comments
 (0)