rt-tests: cyclictest: Close correct trace fds

Remove the last lefotovers from migrating cyclictest to rt-utils.

The rt-utils module is reponsible for handling the tracing code.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
Kurt Kanzenbach 2020-11-07 10:58:42 +01:00 committed by John Kacur
parent 8198888414
commit db390f04d1
1 changed files with 1 additions and 7 deletions

View File

@ -283,9 +283,6 @@ enum {
ERROR_NOTFOUND = -2,
};
static int trace_fd = -1;
static int tracemark_fd = -1;
/*
* Raise the soft priority limit up to prio, if that is less than or equal
* to the hard limit
@ -2273,10 +2270,7 @@ int main(int argc, char **argv)
}
out:
/* close any tracer file descriptors */
if (tracemark_fd >= 0)
close(tracemark_fd);
if (trace_fd >= 0)
close(trace_fd);
disable_trace_mark();
/* unlock everything */
if (lockall)