-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to the how we run the hostagent process, 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 ... Signed-off-by: Nir Soffer <nsoffer@redhat.com>
- Loading branch information
Showing
4 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
pkg/instance/ha_cmd_opts_others.go → pkg/executil/opts_others.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//go:build !windows | ||
|
||
package instance | ||
package executil | ||
|
||
import ( | ||
"syscall" | ||
|
2 changes: 1 addition & 1 deletion
2
pkg/instance/ha_cmd_opts_windows.go → pkg/executil/opts_windows.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package instance | ||
package executil | ||
|
||
import ( | ||
"syscall" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters