[Midnightbsd-cvs] mports: magus.pl: Move chroot init to be with the rest of the init code.
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Wed Oct 8 10:48:50 EDT 2008
Log Message:
-----------
Move chroot init to be with the rest of the init code. Avoid an edge case
with sigchld and db drops this way.
Modified Files:
--------------
mports/Tools/magus/slave:
magus.pl (r1.31 -> r1.32)
-------------- next part --------------
Index: magus.pl
===================================================================
RCS file: /home/cvs/mports/Tools/magus/slave/magus.pl,v
retrieving revision 1.31
retrieving revision 1.32
diff -L Tools/magus/slave/magus.pl -L Tools/magus/slave/magus.pl -u -r1.31 -r1.32
--- Tools/magus/slave/magus.pl
+++ Tools/magus/slave/magus.pl
@@ -126,6 +126,10 @@
create_pid_file();
+$Logger->info("Initializing chroot subsystem.");
+
+init_chroot();
+
$Logger->info("Starting magus on %s (%s)", $Magus::Machine->name, $Magus::Machine->arch);
while (1) {
@@ -156,7 +160,6 @@
sub main {
my $parentPID = $$;
- init_chroot();
MAIN: while (1) {
if (@DeadChildren) {
More information about the Midnightbsd-cvs
mailing list