2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-01 14:55:18 +00:00

socket-util: pipe for Windows.

Windows does have pipes (the interface is a little different).
We mostly use pipes in Linux to synchronize between parent and
children and also to handle fatal signals and then wake from poll_loop().

For Windows, we are using events for the same purpose. So don't
implement pipes for Windows.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Gurucharan Shetty
2014-02-26 08:47:37 -08:00
parent 60567113f7
commit a19a3a9fc3
2 changed files with 4 additions and 0 deletions

View File

@@ -1047,6 +1047,7 @@ get_mtime(const char *file_name, struct timespec *mtime)
}
}
#ifndef _WIN32
void
xpipe(int fds[2])
{
@@ -1062,6 +1063,7 @@ xpipe_nonblocking(int fds[2])
xset_nonblocking(fds[0]);
xset_nonblocking(fds[1]);
}
#endif
static int
getsockopt_int(int fd, int level, int option, const char *optname, int *valuep)