diff options
| author | Sam Varshavchik | 2021-05-17 22:45:55 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2021-05-19 08:03:44 -0400 | 
| commit | f47a71576c377269f5c5ca6156b2f319256e2738 (patch) | |
| tree | 4b7a91e9ab6b3f52f5667e1f1a3abff1841f0b2f /maildrop/recipenode.C | |
| parent | 9c4bd37a0adc2ebbe1ad35d6317da02e4bbfcfb2 (diff) | |
| download | courier-libs-f47a71576c377269f5c5ca6156b2f319256e2738.tar.bz2 | |
maildrop: clean up a dotlock file if exited while it is held.
Implement exit() by throwing an exception, which will wind up and clean
up the dotlock. Catch the exception and exit(), after everything gets
cleaned up.
Diffstat (limited to 'maildrop/recipenode.C')
| -rw-r--r-- | maildrop/recipenode.C | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/maildrop/recipenode.C b/maildrop/recipenode.C index 031eec0..1f84d1f 100644 --- a/maildrop/recipenode.C +++ b/maildrop/recipenode.C @@ -866,7 +866,7 @@ RecipeNode	*c;  		break;  	case exit:  		b="EXITCODE"; -		::exit ( GetVar(b)->Int("0") ); +		throw ( GetVar(b)->Int("0") );  	case foreach:  		if (!firstChild || !firstChild->nextSibling ||  			( firstChild->nodeType != regexpr && | 
