Skip to content

Commit ce9d3ea

Browse files
committed
Fix embarassing bug in bpf_open().
The horror... The horror...
1 parent 768a7e3 commit ce9d3ea

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/rawlink_stubs.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ bpf_open(void)
6969
enter_blocking_section();
7070
fd = open(path, O_RDWR);
7171
leave_blocking_section();
72-
if (fd == -1) {
73-
if (errno == EBUSY)
74-
continue;
75-
break;
76-
}
72+
if (fd == -1 && errno == EBUSY)
73+
continue;
74+
break;
7775
}
7876

7977
if (fd == -1)

0 commit comments

Comments
 (0)