[ovs-git] Open vSwitch: socket-util: Move get_null_fd() to daemon.c. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Feb 21 22:44:37 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  fb14862dcf197ed025a3a337ca47c2f5e9560c0d (commit)
       via  1bada7ab1212c9fb3def0fb5c6af3b78de5ae85c (commit)
       via  1bbd17282444f67e6509ecc930326ec4314da93f (commit)
       via  4f57ad100f4556c45a7ad4c4fe904545a99976e5 (commit)
       via  7ff04d92445beaaea4123cbc3083d950278b1d55 (commit)
      from  71c24bb0f881fde3304de61e19bb4e0c5512da30 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fb14862dcf197ed025a3a337ca47c2f5e9560c0d
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=fb14862dcf197ed025a3a337ca47c2f5e9560c0d
Author: Gurucharan Shetty <gshetty at nicira.com>
		
socket-util: Move get_null_fd() to daemon.c.
		
get_null_fd() is only called from daemon.c.
It does not need thread safety features anymore as
it is called either through daemonize_start() or
indirectly through daemonize_complete() once.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 1bada7ab1212c9fb3def0fb5c6af3b78de5ae85c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1bada7ab1212c9fb3def0fb5c6af3b78de5ae85c
Author: Gurucharan Shetty <gshetty at nicira.com>
		
socket-util: poll() for Windows.
		
Also, Windows does not have a MSG_DONTWAIT. Get rid of it
as we always use non-blocking sockets.

Co-authored-by: Linda Sun <lsun at vmware.com>
Signed-off-by: Linda Sun <lsun at vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 1bbd17282444f67e6509ecc930326ec4314da93f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1bbd17282444f67e6509ecc930326ec4314da93f
Author: Gurucharan Shetty <gshetty at nicira.com>
		
Replace inet_aton() with inet_pton().
		
Windows does not have inet_aton(), but does have a inet_pton().
inet_aton() is not defined in POSIX. But inet_pton() is.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 4f57ad100f4556c45a7ad4c4fe904545a99976e5
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4f57ad100f4556c45a7ad4c4fe904545a99976e5
Author: Gurucharan Shetty <gshetty at nicira.com>
		
socket-util: Move get_max_fds() to process.c.
		
get_max_fds() is used only from process.c. Move it there
along with rlim_is_finite(). Since process_start() can only
be called before any additional threads are created, we
no longer need the thread safety checks in get_max_fds().

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 7ff04d92445beaaea4123cbc3083d950278b1d55
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=7ff04d92445beaaea4123cbc3083d950278b1d55
Author: Gurucharan Shetty <gshetty at nicira.com>
		
socket-util: Unix socket related calls for non-windows platform.
		
Don't try to compile Unix socket related functions for Windows.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/automake.mk   |    4 +--
 lib/bfd.c         |    2 +-
 lib/daemon.c      |   20 ++++++++++++
 lib/process.c     |   43 ++++++++++++++++++++++++++
 lib/socket-util.c |   87 +++++++++--------------------------------------------
 lib/socket-util.h |    5 ++-
 lib/stream.c      |    4 +++
 vswitchd/bridge.c |    7 +++--
 8 files changed, 91 insertions(+), 81 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list