aboutsummaryrefslogtreecommitdiff
path: root/src/connection
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-21 10:13:49 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-24 12:00:33 -0700
commit05b39836da2c268920f76113155e6648ec6b99dd (patch)
tree0ee1cd8754e5f36bf6b1a67b03bf00a9e3867a32 /src/connection
parent4e2ff7598371eff45fd750ff5838e6259204e33a (diff)
downloadconsfigurator-05b39836da2c268920f76113155e6648ec6b99dd.tar.gz
call POST-FORK before WITH-FORK-CONTROL
This ensures that the fork control child is in the same context as its parent -- for example, that they're both chrooted. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection')
-rw-r--r--src/connection/fork.lisp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/connection/fork.lisp b/src/connection/fork.lisp
index 5def543..c3a1bc8 100644
--- a/src/connection/fork.lisp
+++ b/src/connection/fork.lisp
@@ -26,9 +26,8 @@
(defmethod continue-connection ((connection fork-connection) remaining)
(upload-all-prerequisite-data connection)
- (eval-in-grandchild `(progn (post-fork ,connection)
- (continue-deploy* ,connection ',remaining))
- (out err exit)
+ (eval-in-grandchild `(post-fork ,connection)
+ `(continue-deploy* ,connection ',remaining) (out err exit)
(fresh-line)
(princ out)
(return-exit