-
Notifications
You must be signed in to change notification settings - Fork 239
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
Feature request: --json-status-fd could provide pid of command? #553
Comments
If this is achievable, I'd be happy to review a pull request. The easiest way to work out whether this is achievable or not would be to try to implement it and see what happens. |
A use case example: you might want to send |
In cases where bwrap runs its own additional PID 1 process (e.g. --unshare-pid), child-pid used to be the PID of that process, not the PID of the user-specified COMMAND. This is inconvenient as the user might want to send e.g. SIGTERM to the command to give it a chance to exit gracefully. Closes containers#553
In cases where bwrap runs its own additional PID 1 process (e.g. --unshare-pid), child-pid is the PID of that process, not the PID of the user-specified COMMAND. This is inconvenient as the user might want to send e.g. SIGTERM to the command to give it a chance to exit gracefully. Closes containers#553
In cases where bwrap runs its own additional PID 1 process (e.g. --unshare-pid), child-pid is the PID of that process, not the PID of the user-specified COMMAND. This is inconvenient as the user might want to send e.g. SIGTERM to the command to give it a chance to exit gracefully. Closes containers#553 Signed-off-by: WGH <[email protected]>
I think we'll need this to fix this WebKit bug.
See #576 (and thank you!). |
In cases where bwrap runs its own additional PID 1 process (e.g. --unshare-pid), child-pid is the PID of that process, not the PID of the user-specified COMMAND. This is inconvenient as the user might want to send e.g. SIGTERM to the command to give it a chance to exit gracefully. Closes containers#553 Signed-off-by: WGH <[email protected]>
(We wound up not needing it.) |
--json-status-fd
gives achild-pid
value, which is handy. In a lot of situations that is the pid of the COMMAND you're running in the sandbox.But when run with
--unshare-pid
(and maybe others)bwrap
forks itself andchild-pid
references the fork. I would like a way of getting the pid of the COMMAND. Could this be added to the JSON output?Thanks.
The text was updated successfully, but these errors were encountered: