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

dev at openvswitch.org dev at openvswitch.org
Wed Dec 26 20:46: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, master has been updated
       via  e044071be06ffd3540f7406dcc73288c733567b4 (commit)
      from  a4454ac67c6d38740914d157f73b5083f6912172 (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 e044071be06ffd3540f7406dcc73288c733567b4
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=e044071be06ffd3540f7406dcc73288c733567b4
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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list