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

Running tini with subreaper on aws lambda #227

Open
yaron12n opened this issue Jul 19, 2024 · 1 comment
Open

Running tini with subreaper on aws lambda #227

yaron12n opened this issue Jul 19, 2024 · 1 comment

Comments

@yaron12n
Copy link

I'm trying to use tini -s on my aws lambda.
Getting this error Failed to register as child subreaper: Operation not permitted
Probably beachuse prctl(PR_SET_CHILD_SUBREAPER) is not allowed on lambda.

Is there any workaround I can do to make this work?
PID 1 is not possible because the lambda has it's own
And prctl isn't allowed for the lambda.

@yosifkit
Copy link

Based on your description of the problem, I don't see how tini can operate within those limitations. I see a few alternative options:

  1. make your process reap its own children (i.e., don't make zombies by handling SIGCHLD)
  2. don't run long enough for zombies to matter
  3. hope that lambda's PID 1 reaps zombies

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