QProcess give FailedToStart after starting multiple times

I’m trying to use QProcess inside a thread to do some operations (read I2C connections).The update method is calling every 100 msec: void TempsReader::update() { if (_currProcess == nullptr) { _currProcess = new QProcess(); connect(_currProcess, &QProcess::errorOccurred, this, &TempsReader::onProcessError); connect(_currProcess, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(onProcessFinished())); } _currProcess->start(“sh”); if (_currProcess->waitForStarted()) { _currProcess->write(“i2cdetect -y 1”); _currProcess->closeWriteChannel(); _currProcess->waitForFinished(); } } After…

Details