cmdline: missing TEMP_FAILURE_RETRY
This commit is contained in:
parent
5791c8e4db
commit
e6cd9af2ec
@ -807,8 +807,8 @@ std::unique_ptr<nsjconf_t> parseArgs(int argc, char* argv[]) {
|
||||
"specified the --execute_fd flag");
|
||||
return nullptr;
|
||||
#endif /* !defined(__NR_execveat) */
|
||||
if ((nsjconf->exec_fd = open(nsjconf->exec_file, O_RDONLY | O_PATH | O_CLOEXEC)) ==
|
||||
-1) {
|
||||
if ((nsjconf->exec_fd = TEMP_FAILURE_RETRY(
|
||||
open(nsjconf->exec_file, O_RDONLY | O_PATH | O_CLOEXEC))) == -1) {
|
||||
PLOG_W("Couldn't open '%s' file", nsjconf->exec_file);
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user