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

Fix exit codes #139

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open

Fix exit codes #139

wants to merge 1 commit into from

Conversation

manolis-andr
Copy link

Failed keychain executions always return success exit code. The problem
is that although keychain detects the failures and issues 'exit 1', in the
actions of the 'trap' builtin used to cleanup some lock files upon exit,
keychain masks the previous exit code by performing another 'exit 0'.

To fix that, remove 'exit 0' from the trap actions to preserve the
previous exit code of an internal exit invocation.

Failed keychain executions always return success exit code. The problem
is that although keychain detects the failures and issues 'exit 1', in the
actions of the 'trap' builtin used to cleanup some lock files upon exit,
keychain masks the previous exit code by performing another 'exit 0'.

To fix that, remove 'exit 0' from the trap actions to preserve the
previous exit code of an internal exit invocation.

Signed-off-by: Manolis Androulidakis <manolis@arrikto.com>
@mrl5
Copy link

mrl5 commented Jul 16, 2022

hello, @manolis-andr - first of all thank you for the PR and sorry that someone responded after ~4 months

the reason why your PR didn't get any attention is that this is a mirror repository.

Funtoo Linux contribution process happens via https://code.funtoo.org

if you're still interested in contributing to Funtoo Linux you might be interested in this links:

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

Successfully merging this pull request may close these issues.

3 participants