Commit 65a67bd2 authored by Marcus Meissner's avatar Marcus Meissner Committed by Linus Torvalds
Browse files

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: default avatarMarcus Meissner <meissner@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b098161b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -392,6 +392,10 @@ int main(int argc, char *argv[])
			goto err;
		}
	}
	if (!maskset && !tid && !containerset) {
		usage();
		goto err;
	}

	do {
		int i;