[ovs-git] Open vSwitch: daemon: Make sure that vlog is initialized when a process daemonizes. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Aug 12 11:14:25 PDT 2010


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  df5d2ed998115b4aace007508e0cc374f5f84ab5 (commit)
      from  3d41239d308452b43bdf64d8acf7dde20e0fb986 (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 df5d2ed998115b4aace007508e0cc374f5f84ab5
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=df5d2ed998115b4aace007508e0cc374f5f84ab5
Author: Ben Pfaff <blp at nicira.com>
		
daemon: Make sure that vlog is initialized when a process daemonizes.
		
If a process daemonizes itself, then it should be possible to control that
process's log levels with "ovs-appctl vlog/set" and related commands.  The
vlog_init() function registers those commands.  But vlog_init() doesn't
normally get called until the first log message is issued.  This can take a
while, especially for ovs-controller, where I first noticed the problem.

This commit fixes the problem by calling vlog_init() from
daemonize_start(), which always gets called as a process daemonizes.


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

Summary of changes:
 lib/daemon.c |    4 ++++
 lib/vlog.c   |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list