Running tini with subreaper on aws lambda
Opened this issue · 1 comments
yaron12n commented
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 commented
Based on your description of the problem, I don't see how tini
can operate within those limitations. I see a few alternative options:
- make your process reap its own children (i.e., don't make zombies by handling
SIGCHLD
) - don't run long enough for zombies to matter
- hope that lambda's PID 1 reaps zombies