aboutsummaryrefslogtreecommitdiff
path: root/src/property
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-18 22:33:02 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-24 09:39:07 -0700
commit50915cdb6080aff3f0c29a369efd29aa5e47e5f2 (patch)
tree059f1a1542c3d0522c1579cf734b3ceda312f162 /src/property
parentf4e9170e73cb4bcfa7328422b4ff4f72d1339dd0 (diff)
downloadconsfigurator-50915cdb6080aff3f0c29a369efd29aa5e47e5f2.tar.gz
UNWIND-PROTECT-IN-PARENT -> UNWIND-PROTECT
No longer needed thanks to f4e9170e73cb4bcfa7328422b4ff4f72d1339dd0. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property')
-rw-r--r--src/property/disk.lisp2
-rw-r--r--src/property/installer.lisp14
-rw-r--r--src/property/service.lisp7
3 files changed, 11 insertions, 12 deletions
diff --git a/src/property/disk.lisp b/src/property/disk.lisp
index dea18f8..3fa97ee 100644
--- a/src/property/disk.lisp
+++ b/src/property/disk.lisp
@@ -759,7 +759,7 @@ must not be modified."
(apply #'open-volumes-and-contents
`(,volumes ,@(and mount-below-supplied-p
`(:mount-below ,mount-below)))))
- (unwind-protect-in-parent (propappapply propapp)
+ (unwind-protect (propappapply propapp)
(mrun "sync")
(mapc #'close-volume (get-connattr :opened-volumes)))))
:args (cdr propapp)))
diff --git a/src/property/installer.lisp b/src/property/installer.lisp
index 0196438..f5a3806 100644
--- a/src/property/installer.lisp
+++ b/src/property/installer.lisp
@@ -158,13 +158,13 @@ using a combinator like ON-CHANGE, or applied manually with DEPLOY-THESE."
;;; Another option would be a new SERVICES:WITHOUT-STARTING-SERVICES-UNTIL-END
;;; which would disable starting services and push the cleanup forms inside
;;; the definition of SERVICES:WITHOUT-STARTING-SERVICES to *AT-END-FUNCTIONS*
-;;; in a closure. We'd also want %CONSFIGURE to use UNWIND-PROTECT-IN-PARENT
-;;; to ensure that the AT-END functions get run even when there's a nonlocal
-;;; exit from %CONSFIGURE's call to PROPAPPAPPLY; perhaps we could pass a
-;;; second argument to the AT-END functions indicating whether there was a
-;;; non-local transfer of control. REBOOT:REBOOTED-AT-END might only reboot
-;;; when there was a normal return from PROPAPPAPPLY, whereas the cleanup
-;;; forms from SERVICES:WITHOUT-STARTING-SERVICES would always be evaluated.
+;;; in a closure. We'd also want %CONSFIGURE to use UNWIND-PROTECT to ensure
+;;; that the AT-END functions get run even when there's a nonlocal exit from
+;;; %CONSFIGURE's call to PROPAPPAPPLY; perhaps we could pass a second
+;;; argument to the AT-END functions indicating whether there was a non-local
+;;; transfer of control. REBOOT:REBOOTED-AT-END might only reboot when there
+;;; was a normal return from PROPAPPAPPLY, whereas the cleanup forms from
+;;; SERVICES:WITHOUT-STARTING-SERVICES would always be evaluated.
(defprop %root-filesystems-flipped :lisp (new-os old-os)
(:hostattrs (os:required 'os:linux))
diff --git a/src/property/service.lisp b/src/property/service.lisp
index 247cb2d..bf6900c 100644
--- a/src/property/service.lisp
+++ b/src/property/service.lisp
@@ -88,10 +88,9 @@ properties."
;; past. (SLEEP 1) is only approximately one second so
;; check that it's actually been a second.
(loop do (sleep 1) until (> (get-universal-time) before))
- (unwind-protect-in-parent
- (with-preserve-hostattrs
- (push-hostattrs :no-services t)
- (propappapply propapp))
+ (unwind-protect (with-preserve-hostattrs
+ (push-hostattrs :no-services t)
+ (propappapply propapp))
(if already-exists
;; Check whether some property we applied set the
;; contents of /usr/sbin/policy-rc.d, in which case