mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix a deadlock in ggatel(8) simlar to one which was fixed some time
ago in md(4). Submitted by: Ivan Voras <ivoras@fer.hr>
This commit is contained in:
parent
aefadae38e
commit
0618f3dcba
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ g_gatel_create(void)
|
|||
struct g_gate_ctl_create ggioc;
|
||||
int fd;
|
||||
|
||||
fd = open(path, g_gate_openflags(flags));
|
||||
fd = open(path, g_gate_openflags(flags) | O_DIRECT | O_FSYNC);
|
||||
if (fd == -1)
|
||||
err(EXIT_FAILURE, "Cannot open %s", path);
|
||||
ggioc.gctl_version = G_GATE_VERSION;
|
||||
|
|
|
|||
Loading…
Reference in a new issue