$self->_child($pid);
}
else {
+ # Only the parent process needs to watch for changes, so the child
+ # should release any resources held by the watcher:
+ $self->_clear_watcher;
$self->start_sub->();
}
}
wait;
}
+__PACKAGE__->meta->make_immutable;
+
1;
__END__