Commit e9d0bb19 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

BebShell: send explicit exit command on destruction:

* Closing shell input pipe is not enough if forked after creation,
  wich is the case of multiple Camera::Beb instances
parent ed7e420e
......@@ -53,7 +53,7 @@ BebShell::~BebShell()
DEB_DESTRUCTOR();
AutoMutex l = lock();
Pipe& in = m_cmd->getPipe(SystemCmdPipe::StdIn);
in.close(Pipe::WriteFd);
in.write("exit\n");
}
string BebShell::exec(string cmd)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment