[Opendnssec-develop] Re: [OpenDNSSEC] #166: Patch: Correct exit value from signer

Rick van Rein rick at goldmoney.com
Thu Aug 5 13:02:09 UTC 2010


Hi Matthijs,

> shouldn't the raise in the patch be 'pass'? (like in Engine.py.in)

No, I don't think so.  Whatever you threw using System.exit() in the
try-clause should go out to the next layer.

	try:
		...
		System.exit (0) # should exit with code 0
		...
		System.exit (123) # should exit with code 123
		...
	except...

Using raise, you will repeat whatever exception was thrown inside.
If you would pass, you would exit normally, which would turn all
try-clause exits into OK -- including exit(123) above.

-Rick




More information about the Opendnssec-develop mailing list