fixed: race condition

This commit is contained in:
Bob 2014-02-09 23:50:39 +01:00
parent abbe6b2b38
commit c35c5d3ca9

View file

@ -156,10 +156,10 @@ void CAmpSwitch::Process()
printf("switching off, executing \"%s\"\n", m_offcommand);
system(m_offcommand);
}
}
uint8_t byte;
while (read(m_pipe[0], &byte, 1) == 1);
uint8_t byte;
while (read(m_pipe[0], &byte, 1) == 1);
}
}
}