Changeset 510 for trunk


Ignore:
Timestamp:
12/05/2009 19:59:28 (2 years ago)
Author:
ccowart
Message:

Fixing the die handler to exit the subshell instead of allowing some
additional commands to be executed before the parents kills it off.

Fixes #113

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confmanlib.sh.in

    r509 r510  
    11261126# Because an exit doesn't help much when things are in subshells, we 
    11271127# provide a nice, easy way to halt execution. The result is the clean 
    1128 # exit trap gets called. 
     1128# exit trap gets called. We also call exit to halt execution of this 
     1129# subshell (otherwise some commands will still be run before the parent 
     1130# handles the signal and kills us off). 
    11291131function die { 
    11301132    kill -INT $MY_PID 
     1133    exit 1 
    11311134} 
    11321135 
Note: See TracChangeset for help on using the changeset viewer.