[ovs-git] Open vSwitch: ovs-ctl: Exit, instead of resuming, after handling fatal signals. (branch-1.4)

dev at openvswitch.org dev at openvswitch.org
Wed Dec 26 21:03:37 UTC 2012


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, branch-1.4 has been updated
       via  ee85571d9ff1ce50b4cc343bb58170ce1548738a (commit)
      from  8963743a95f53933249e468492b163747f1b2b73 (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 ee85571d9ff1ce50b4cc343bb58170ce1548738a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=ee85571d9ff1ce50b4cc343bb58170ce1548738a
Author: Ben Pfaff <blp at nicira.com>
		
ovs-ctl: Exit, instead of resuming, after handling fatal signals.
		
When I wrote the "trap" calls in ovs-ctl, I had the mistaken notion that
"trap $cmd $signal" would execute $cmd and then exit when $signal was
caught.  This is incorrect.  Instead, it executes $cmd and then resumes
executing the shell script.

On the other hand, "trap $cmd 0" does by itself what I wanted: it causes
the shell to execute $cmd and then exits due to the signal.  So this commit
changes the offending traps to use this form.

Bug #14290.
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Kyle Mestery <kmestery at cisco.com>


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

Summary of changes:
 utilities/ovs-ctl.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list