Skip to content

Commit

Permalink
Fix remote interface communication issue (broken pipe) (PiSCSI#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet authored and rdmark committed Jan 16, 2024
1 parent f935556 commit 7a986c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/piscsi/piscsi_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a986c8

Please # to comment.