[gnome-user-share] OpenBSD suffers from the same httpd race condition	as the other BSDs.
- From: Antoine Jacoutot <ajacoutot src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-user-share] OpenBSD suffers from the same httpd race condition	as the other BSDs.
- Date: Sat,  6 Apr 2013 08:13:11 +0000 (UTC)
commit 4f946c9f4699ece54f290fab22bb0f965bf2c47f
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Sat Apr 6 10:12:53 2013 +0200
    OpenBSD suffers from the same httpd race condition as the other BSDs.
 src/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/http.c b/src/http.c
index a67aef0..db1e954 100644
--- a/src/http.c
+++ b/src/http.c
@@ -84,7 +84,7 @@ get_port (void)
                return -1;
        }
 
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__OpenBSD__)
        /* XXX This exposes a potential race condition, but without this,
         * httpd will not start on the above listed platforms due to the fact
         * that SO_REUSEADDR is also needed when Apache binds to the listening
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]