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

dev at openvswitch.org dev at openvswitch.org
Wed Dec 26 21:02:43 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.8 has been updated
       via  b055d2de75a47ac6d63eb27a65b03ce73c953544 (commit)
      from  ffdf1ea0ffbcc4a87279f71b27320a3b154ccb56 (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 b055d2de75a47ac6d63eb27a65b03ce73c953544
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b055d2de75a47ac6d63eb27a65b03ce73c953544
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