bugfix/ai-static-analysis #82
@ -43,8 +43,15 @@ void reHDD::app_logic(void)
|
|||||||
ui = new TUI();
|
ui = new TUI();
|
||||||
ui->initTUI();
|
ui->initTUI();
|
||||||
|
|
||||||
pipe(fdNewDrivesInformPipe);
|
if (pipe(fdNewDrivesInformPipe) == -1)
|
||||||
pipe(fdShredInformPipe);
|
{
|
||||||
|
Logger::logThis()->error("Unable to open pipe 'fdNewDrivesInformPipe'");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pipe(fdShredInformPipe) == -1)
|
||||||
|
{
|
||||||
|
Logger::logThis()->error("Unable to open pipe 'fdShredInformPipe'");
|
||||||
|
}
|
||||||
|
|
||||||
thread thDevices(ThreadScanDevices); // start thread that scans for drives
|
thread thDevices(ThreadScanDevices); // start thread that scans for drives
|
||||||
thread thUserInput(ThreadUserInput); // start thread that reads user input
|
thread thUserInput(ThreadUserInput); // start thread that reads user input
|
||||||
|
|||||||
Reference in New Issue
Block a user