Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
---
 lib/ovs-thread.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/ovs-thread.c b/lib/ovs-thread.c
index 85de014..ed9f83e 100644
--- a/lib/ovs-thread.c
+++ b/lib/ovs-thread.c
@@ -332,6 +332,7 @@ assert_single_threaded_at(const char *where)
 pid_t
 xfork_at(const char *where)
 {
+#ifndef _WIN32
     pid_t pid;
 
     if (must_not_fork) {
@@ -344,6 +345,10 @@ xfork_at(const char *where)
         VLOG_FATAL("%s: fork failed (%s)", where, ovs_strerror(errno));
     }
     return pid;
+#else
+    VLOG_FATAL("%s: attempted to fork but forking not allowed", where);
+    return 0;
+#endif
 }
 
 /* Notes that the process must not call fork() from now on, for the specified
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to