mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
Linux: try to fix some rare issues when invoking sudo using fork by waiting 1 second for forked process to start
This commit is contained in:
parent
e42bc65ae9
commit
e7b3ca7334
@ -458,6 +458,9 @@ namespace VeraCrypt
|
||||
adminPassword[request.AdminPassword.size()] = '\n';
|
||||
}
|
||||
|
||||
#if defined(TC_LINUX )
|
||||
Thread::Sleep (1000); // wait 1 second for the forked sudo to start
|
||||
#endif
|
||||
if (write (inPipe->GetWriteFD(), &adminPassword.front(), adminPassword.size())) { } // Errors ignored
|
||||
|
||||
burn (&adminPassword.front(), adminPassword.size());
|
||||
|
Loading…
Reference in New Issue
Block a user