diff options
author | pjd <pjd@FreeBSD.org> | 2004-10-02 16:58:33 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-10-02 16:58:33 +0000 |
commit | 631ed342dc5c623dfe87e11b7eb9e157ef574de0 (patch) | |
tree | b0fac58a79c4c70c4f6dbfc4b83652f5fd7081f5 /sbin/ggate/ggatel | |
parent | a199369c052c9c5b69a49fc3e9925a2a1f2cb080 (diff) | |
download | FreeBSD-src-631ed342dc5c623dfe87e11b7eb9e157ef574de0.zip FreeBSD-src-631ed342dc5c623dfe87e11b7eb9e157ef574de0.tar.gz |
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>
Diffstat (limited to 'sbin/ggate/ggatel')
-rw-r--r-- | sbin/ggate/ggatel/ggatel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ggate/ggatel/ggatel.c b/sbin/ggate/ggatel/ggatel.c index 4aa19ea..5d14d3d 100644 --- a/sbin/ggate/ggatel/ggatel.c +++ b/sbin/ggate/ggatel/ggatel.c @@ -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; |