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

Unable to create background process from store process #261

Open
mridlen opened this issue Apr 13, 2023 · 0 comments
Open

Unable to create background process from store process #261

mridlen opened this issue Apr 13, 2023 · 0 comments

Comments

@mridlen
Copy link

mridlen commented Apr 13, 2023

I'm trying to background a process, and this is just an example code that triggers the behavior... I realize it isn't working code.

code:

case "$1" in
  "store")
    (
    while :
    do
      echo "sleeping..." > /dev/tty
      sleep 30
    done
    ) &
  exit 0
   ;;
esac
[...]

When I run the credential helper manually from the command line like this, it works and spits me back out to a command prompt:
echo '{ <JSON> }' | docker-credential-blah store

But when I use podman to log in:
podman login url.com

It asks for username and password (from the "get" process) but then just hangs once it gets to the "store" process.

I even tried moving the background code to a separate script and running that, but it still waits for that code to finish before continuing on. I think it must be waiting for all the child processes to complete.

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

1 participant