From 0618f3dcbad80bb8d84d23dc0471a2be2abab6de Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sat, 2 Oct 2004 16:58:33 +0000 Subject: [PATCH] Fix a deadlock in ggatel(8) simlar to one which was fixed some time ago in md(4). Submitted by: Ivan Voras --- sbin/ggate/ggatel/ggatel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ggate/ggatel/ggatel.c b/sbin/ggate/ggatel/ggatel.c index 4aa19eab4f27..5d14d3dcd88e 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;