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

[Error] Exported programs not killed if tracked by launch PID #613

Closed
parkerlreed opened this issue Feb 6, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@parkerlreed
Copy link

parkerlreed commented Feb 6, 2023

Describe the bug

If a script launches an exported program and tracks the PID with $! , this PID belongs to sh executing the export script and not the real program.

To Reproduce

  1. Setup container
  2. Install PHP in container
  3. distrobox export /usr/bin/php
  4. On the host side
#!/bin/bash
~/.local/bin/php &
PID="$!"
kill $PID

The sh script is killed but /usr/bin/php continues to run in the distrobox container.

Expected behavior

Either the script passing on the real PID or killing the script also killing the process within the container.

Desktop (please complete the following information):

  • Podman rootless
  • Podman 4.2.1
  • Distrobox 1.4.2.1
@89luca89
Copy link
Owner

Closing this in favor of #966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants