Skip to content

Commit

Permalink
lxd/devlxd: always use -- with lxc exec
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Oct 27, 2023
1 parent 4ff07b0 commit d0f3ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/devlxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func findContainerForPid(pid int32, s *state.State) (instance.Container, error)
* 1. Walk up the process tree until you see something that looks like
* an lxc monitor process and extract its name from there.
*
* 2. If this fails, it may be that someone did an `lxc exec foo bash`,
* 2. If this fails, it may be that someone did an `lxc exec foo -- bash`,
* so the process isn't actually a descendant of the container's
* init. In this case we just look through all the containers until
* we find an init with a matching pid namespace. This is probably
Expand Down

0 comments on commit d0f3ea0

Please sign in to comment.