projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5791c8e
)
cmdline: missing TEMP_FAILURE_RETRY
author
Robert Swiecki
<robert@swiecki.net>
Sun, 11 Feb 2018 15:55:19 +0000
(16:55 +0100)
committer
Robert Swiecki
<robert@swiecki.net>
Sun, 11 Feb 2018 15:55:19 +0000
(16:55 +0100)
cmdline.cc
patch
|
blob
|
history
diff --git
a/cmdline.cc
b/cmdline.cc
index
ed52026
..
b24a549
100644
(file)
--- a/
cmdline.cc
+++ b/
cmdline.cc
@@
-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;
}