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

override exit codes #149

Open
skinowski opened this issue Sep 8, 2018 · 1 comment
Open

override exit codes #149

skinowski opened this issue Sep 8, 2018 · 1 comment

Comments

@skinowski
Copy link
Member

Docker uses: http://tldp.org/LDP/abs/html/exitcodes.html
Make sure FDK does not allow functions to exit with these codes.
For example, 137 exit code is currently flagged as OOM in fn-agent, therefore functions should not be allowed to exit with 137 themselves.

@zootalures
Copy link
Member

The FDK should probably handle System.exit with a security manager override and trigger a meaningful error to function logs when this is called (e.g. "Function tried to exit VM ") if we did that then FDK images can only return 0,1,2

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

2 participants