aboutsummaryrefslogtreecommitdiff
path: root/src/connection
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-29 13:01:49 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-30 17:46:39 -0700
commit76f0787a03fde26243d0034d3c15c444df5ea69c (patch)
tree288706fb111a3a65fa3490d97cb1c5e02fdba77e /src/connection
parent844818aa56e9ed75b9600f5ef6e833bb5fdacaca (diff)
downloadconsfigurator-76f0787a03fde26243d0034d3c15c444df5ea69c.tar.gz
CONTINUE-DEPLOY* connections: push a new connection object
This is cleaner than resetting certain slot values. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection')
-rw-r--r--src/connection/fork.lisp4
-rw-r--r--src/connection/rehome.lisp3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/connection/fork.lisp b/src/connection/fork.lisp
index 295f8a2..a8c3631 100644
--- a/src/connection/fork.lisp
+++ b/src/connection/fork.lisp
@@ -45,7 +45,7 @@ for example, such that we don't see it."
(and
#+sbcl (> 2 (length (sb-thread:list-all-threads)))))
-(defclass fork-connection (lisp-connection) ())
+(defclass fork-connection (local-connection) ())
(defgeneric post-fork (connection)
(:documentation
@@ -95,7 +95,7 @@ for example, such that we don't see it."
;; the child afterwards, rather than returning to the child's
;; REPL or whatever else.
(uiop:quit
- (if (eql :no-change (continue-deploy* remaining))
+ (if (eql :no-change (continue-deploy* connection remaining))
0
1)))))
(t
diff --git a/src/connection/rehome.lisp b/src/connection/rehome.lisp
index 77aaf6d..5b57d5f 100644
--- a/src/connection/rehome.lisp
+++ b/src/connection/rehome.lisp
@@ -26,9 +26,6 @@
(:documentation
"A connection which works by switching to a new HOME on the same host."))
-(defmethod post-fork :before ((connection rehome-connection))
- (reset-remote-home))
-
(defmethod connection-upload ((connection rehome-connection) (data file-data))
(with-slots (iden1 iden2 data-version) data
(let ((inside (data-pathname