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

Run usernet process in background #2595

Merged
merged 1 commit into from
Sep 17, 2024

Commits on Sep 8, 2024

  1. Run usernet process in background

    Similar to the how we run the hostagent process[1], we want to run the
    usernet process in the background. Now a program using killpg to cleanup
    child processes will not terminate the usernet process.
    
    Example run with this change:
    
        % ps -o pid,pgid,ppid,command
          PID  PGID  PPID COMMAND
        55768 55768 55767 -zsh
        56126 56126 55768 limactl start userv2.yaml --tty=0
        56128 56128 56126 /Users/nsoffer/src/lima/_output/bin/limactl usernet ...
        56131 56131 56126 /Users/nsoffer/src/lima/_output/bin/limactl hostagent ...
    
        % ps -o pid,pgid,ppid,command
          PID  PGID  PPID COMMAND
        55768 55768 55767 -zsh
        56128 56128     1 /Users/nsoffer/src/lima/_output/bin/limactl usernet ...
        56131 56131     1 /Users/nsoffer/src/lima/_output/bin/limactl hostagent ...
    
    [1] lima-vm#2574
    
    Signed-off-by: Nir Soffer <nsoffer@redhat.com>
    nirs committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    159d1ec View commit details
    Browse the repository at this point in the history