prof: fix ioctl call

This commit is contained in:
Matheus
2025-12-25 20:20:50 -03:00
parent a9dee251c9
commit 50f934894d
+1 -1
View File
@@ -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];