cyclictest: Change the output from function sighand() to stderr

cyclictest can be run from other tools such as rteval
in order to get current status on long runs, SIGUSR1 is sent to
cyclictest and caught by function sighand()

This creates difficulties for rteval when parsing cyclictest output, so
change the output to stderr.

Note, a RFC was sent out on Apr.15 2014 entitled
"RFC: SIGUSR1 to stderr"
to:	 RT <linux-rt-users@vger.kernel.org>
cc:	 Carsten Emde <C.Emde@osadl.org>,
	 Thomas Gleixner <tglx@linutronix.de>,
	  Clark Williams <williams@redhat.com>

Since I didn't receive any replies, I'm assumin there are no objections

Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
John Kacur 2014-08-14 16:22:11 +02:00
parent 4b430a7678
commit f0b2df877c
1 changed files with 4 additions and 4 deletions

View File

@ -1569,11 +1569,11 @@ static void sighand(int sig)
int oldquiet = quiet;
quiet = 0;
printf("#---------------------------\n");
printf("# cyclictest current status:\n");
fprintf(stderr, "#---------------------------\n");
fprintf(stderr, "# cyclictest current status:\n");
for (i = 0; i < num_threads; i++)
print_stat(stdout, parameters[i], i, 0, 0);
printf("#---------------------------\n");
print_stat(stderr, parameters[i], i, 0, 0);
fprintf(stderr, "#---------------------------\n");
quiet = oldquiet;
return;
}