[ovs-git] Open vSwitch: daemon: Move some common code to daemon.c (master)

dev at openvswitch.org dev at openvswitch.org
Thu Apr 24 22:03:07 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  3834bcf2bf9106114bca70264b7a0bdb7351ff80 (commit)
       via  d6bc33f37a218832456fed11fa1796e6b7e93102 (commit)
       via  a91dc4447bb6c6bd8807aaaa4e00af0abe4fa5c7 (commit)
      from  bbbca389c002f740dffd0d8c24f13e562efaa876 (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 3834bcf2bf9106114bca70264b7a0bdb7351ff80
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=3834bcf2bf9106114bca70264b7a0bdb7351ff80
Author: Gurucharan Shetty <gshetty at nicira.com>
		
daemon: Move some common code to daemon.c
		
We have some common code between daemon-unix.c and
daemon-windows.c. Move them to daemon.c

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


commit d6bc33f37a218832456fed11fa1796e6b7e93102
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d6bc33f37a218832456fed11fa1796e6b7e93102
Author: Gurucharan Shetty <gshetty at nicira.com>
		
daemon: Close standard file descriptors after detach for windows.
		
In the unit tests, we check for some logs stored in stderr. In case
of windows, unit tests fail because the child writes additional information
into stderr because it does not have it closed. This commit
closes standard file descriptors for windows too.

Because the functions related to closing file descriptors is common
for both windows and unix, add it to the common daemonization file
daemon.c

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


commit a91dc4447bb6c6bd8807aaaa4e00af0abe4fa5c7
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=a91dc4447bb6c6bd8807aaaa4e00af0abe4fa5c7
Author: Gurucharan Shetty <gshetty at nicira.com>
		
daemon: Rename daemon.c as daemon-unix.c
		
An upcoming commit re-introduces daemon.c to have
common functions across daemon-unix.c and daemon-windows.c

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


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

Summary of changes:
 lib/automake.mk                                  |    4 +-
 include/windows/net/if.h => lib/daemon-private.h |   11 +-
 lib/{daemon.c => daemon-unix.c}                  |  101 +---
 lib/daemon-windows.c                             |   51 +-
 lib/daemon.c                                     |  688 +---------------------
 lib/daemon.h                                     |    3 +-
 6 files changed, 52 insertions(+), 806 deletions(-)
 copy include/windows/net/if.h => lib/daemon-private.h (78%)
 copy lib/{daemon.c => daemon-unix.c} (87%)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list