mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
ovs-thread: We don't use fork in Windows.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -322,6 +322,7 @@ assert_single_threaded_at(const char *where)
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
/* Forks the current process (checking that this is allowed). Aborts with
|
||||
* VLOG_FATAL if fork() returns an error, and otherwise returns the value
|
||||
* returned by fork().
|
||||
@@ -345,6 +346,7 @@ xfork_at(const char *where)
|
||||
}
|
||||
return pid;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Notes that the process must not call fork() from now on, for the specified
|
||||
* 'reason'. (The process may still fork() if it execs itself immediately
|
||||
|
||||
Reference in New Issue
Block a user