[ovs-git] Open vSwitch: ovs-check-dead-ifs: Flush buffer before calling execvp. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Dec 20 17:45:27 UTC 2013


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  09daa5dfe6979894fe7e4962357b4260827f3cca (commit)
      from  b1634591bc7103fa511c8a6a920b370641da3b0e (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 09daa5dfe6979894fe7e4962357b4260827f3cca
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=09daa5dfe6979894fe7e4962357b4260827f3cca
Author: Gurucharan Shetty <gshetty at nicira.com>
		
ovs-check-dead-ifs: Flush buffer before calling execvp.
		
According to Python documentation here for execvp:
http://docs.python.org/2/library/os.html
"The current process is replaced immediately. Open file objects
and descriptors are not flushed, so if there may be data buffered
on these open files, you should flush them using sys.stdout.flush()
or os.fsync() before calling an exec* function.

Without the flush, we will miss the print statements before that
if we redirect the o/p to a file.

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


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

Summary of changes:
 utilities/ovs-check-dead-ifs.in |    1 +
 1 file changed, 1 insertion(+)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list