* modules/shepherd.scm (main): Switch with-service-registry and
with-process-monitor. Fix proposed by @emixa-d at
https://github.com/wingo/fibers/issues/29#issuecomment-1858922276. This way
the parameterize of the process monitor covers everything else.
---
modules/shepherd.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/shepherd.scm b/modules/shepherd.scm
index 77c6d18..3303de3 100644
--- a/modules/shepherd.scm
+++ b/modules/shepherd.scm
@@ -450,8 +450,8 @@ fork in the child process."
;; because POSIX threads and 'fork' cannot be used together.
(run-fibers
(lambda ()
- (with-service-registry
- (with-process-monitor
+ (with-process-monitor
+ (with-service-registry
;; Register and start the 'root' service.
(register-services (list root-service))
--
2.41.0