Fix remote interface communication issue (broken pipe) (#1415)

This commit is contained in:
Uwe Seimet 2024-01-15 16:39:15 +01:00
parent f935556887
commit e4fccdcd88
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ bool PiscsiExecutor::ProcessCmd(const CommandContext& context)
return false;
}
return context.ReturnSuccessStatus();
// ATTACH and DETACH are special cases because they return the current device list
return command.operation() == ATTACH || command.operation() == DETACH ? true : context.ReturnSuccessStatus();
}
bool PiscsiExecutor::Start(PrimaryDevice& device, bool dryRun) const