Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exit codes are wrong #8

Open
teleshoes opened this issue Aug 11, 2015 · 0 comments
Open

exit codes are wrong #8

teleshoes opened this issue Aug 11, 2015 · 0 comments

Comments

@teleshoes
Copy link

1 is returned on success and on the two most common errors. 0 is returned on all other errors.

perhaps you should revert 3545319, going back to 'return 1' for success, and 'return 0' for error.
then simply do this:

my $smtp_success = run_smtp;
my $exit_code = $smtp_success ? 0 : 125;
exit $exit_code;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant