mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-05 16:46:35 -05: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:
1 file changed
+3
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user