mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
monitor: extend monitor interface from controller
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:

committed by
Kohei Tokunaga

parent
9f884edbbf
commit
a43837d26c
@ -26,7 +26,7 @@ func (cm *DisconnectCmd) Exec(ctx context.Context, args []string) error {
|
||||
}
|
||||
isProcess, err := isProcessID(ctx, cm.m, target)
|
||||
if err == nil && isProcess {
|
||||
if err := cm.m.DisconnectProcess(ctx, target); err != nil {
|
||||
if err := cm.m.DisconnectProcess(ctx, cm.m.AttachedSessionID(), target); err != nil {
|
||||
return errors.Errorf("disconnecting from process failed %v", target)
|
||||
}
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user