Skip to content

Commit 2008b4f

Browse files
committed
customcommand flush
1 parent ac75248 commit 2008b4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mainReadout.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,7 @@ void Readout::executeCustomCommand(const char *stateChange) {
14751475
theLog.log(LogInfoDevel_(3013), "Executing custom command for %s : %s", it->first.c_str(), it->second.c_str());
14761476
std::string cmd = it->second + "\n";
14771477
write(customCommandsShellFdIn, cmd.c_str(), cmd.length());
1478+
fsync(customCommandsShellFdIn);
14781479
LineBuffer b;
14791480
const int cmdTimeout = 10000; // 10s timeout
14801481
b.appendFromFileDescriptor(customCommandsShellFdOut, cmdTimeout);

0 commit comments

Comments
 (0)