chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
430e21c
)
execute: explain in a comment, why close_all_fds() is invoked the second time differently
author
Lennart Poettering
<lennart@poettering.net>
Thu, 21 Aug 2014 15:35:19 +0000
(17:35 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 21 Aug 2014 15:35:19 +0000
(17:35 +0200)
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index 2544a2470ca772236d1520f4bbb12c7f2e7d2535..b5b22472d5a9f8ff954ad409484e4cef7aaedca8 100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-1635,7
+1635,9
@@
int exec_spawn(ExecCommand *command,
}
/* We repeat the fd closing here, to make sure that
- * nothing is leaked from the PAM modules */
+ * nothing is leaked from the PAM modules. Note that
+ * we are more aggressive this time since socket_fd
+ * and the netns fds we don#t need anymore. */
err = close_all_fds(fds, n_fds);
if (err >= 0)
err = shift_fds(fds, n_fds);