summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hindley <mark@hindley.org.uk>2018-10-30 09:13:11 +0000
committerMark Hindley <mark@hindley.org.uk>2018-10-30 16:37:42 +0000
commit8ab330a1c21e46712a684cb720ee576e550f1799 (patch)
tree52efc4b40e14d8bf58a391f03ccf8818fabb40c1
parentf5897aaa86c9dbf69f6e03c906ae0444d66094b8 (diff)
Remove patch fix-forking.diff. FDs are now correctly closed with safe_fork_full() and FORK_CLOSE_ALL_FDS flag.
-rw-r--r--debian/patches/fix-forking.diff15
-rw-r--r--debian/patches/series1
2 files changed, 0 insertions, 16 deletions
diff --git a/debian/patches/fix-forking.diff b/debian/patches/fix-forking.diff
deleted file mode 100644
index 1edb276c5..000000000
--- a/debian/patches/fix-forking.diff
+++ /dev/null
@@ -1,15 +0,0 @@
---- a/src/login/elogind.c
-+++ b/src/login/elogind.c
-@@ -125,6 +125,12 @@
-
- /* The first child has to become a new session leader. */
- close_all_fds(NULL, 0);
-+
-+ /* close_all_fds() does not close 0,1,2 */
-+ close(0);
-+ close(1);
-+ close(2);
-+
- SID = setsid();
- if ((pid_t)-1 == SID)
- return log_error_errno(errno, "Failed to create new SID: %m");
diff --git a/debian/patches/series b/debian/patches/series
index de27c5331..e69de29bb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +0,0 @@
-fix-forking.diff