mh_execm: get rid of child process in case of error, for a clean start on next request (handle rclzip crash on encrypted files)

This commit is contained in:
Jean-Francois Dockes
2010-09-23 18:32:52 +02:00
parent 74fa554067
commit e8671c83be
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -172,6 +172,7 @@ bool MimeHandlerExecMultiple::next_document()
obuf << "Mimetype: " << m_mimeType.length() << "\n" << m_mimeType;
obuf << "\n";
if (m_cmd.send(obuf.str()) < 0) {
m_cmd.zapChild();
LOGERR(("MHExecMultiple: send error\n"));
return false;
}
@@ -185,6 +186,7 @@ bool MimeHandlerExecMultiple::next_document()
for (int loop=0;;loop++) {
string name, data;
if (!readDataElement(name, data)) {
m_cmd.zapChild();
return false;
}
if (name.empty())