From 50f934894d088b7e471e65b81a4cad474fcbe5e2 Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 25 Dec 2025 20:20:50 -0300 Subject: [PATCH] prof: fix ioctl call --- tools/prof/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/prof/main.c b/tools/prof/main.c index 3a44bec9..f4dbed87 100644 --- a/tools/prof/main.c +++ b/tools/prof/main.c @@ -43,7 +43,7 @@ int main(int argc, char *argv[]) { printf("%s: draining /dev/prof\n", argv[0]); // empty it - if (ioctl(infd, 12345678, NULL) > 0) + if (ioctl(infd, 12345678, NULL) < 0) return EXIT_FAILURE; struct pollfd pollfd[2];