mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
prof: fix ioctl call
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
printf("%s: draining /dev/prof\n", argv[0]);
|
printf("%s: draining /dev/prof\n", argv[0]);
|
||||||
// empty it
|
// empty it
|
||||||
if (ioctl(infd, 12345678, NULL) > 0)
|
if (ioctl(infd, 12345678, NULL) < 0)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
struct pollfd pollfd[2];
|
struct pollfd pollfd[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user