projects
/
catagits/Catalyst-Devel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Catalyst::Restarter::Forking: clear watcher in child process
[catagits/Catalyst-Devel.git]
/
lib
/
Catalyst
/
Restarter
/
Forking.pm
diff --git
a/lib/Catalyst/Restarter/Forking.pm
b/lib/Catalyst/Restarter/Forking.pm
index
40c81f0
..
a45e516
100644
(file)
--- a/
lib/Catalyst/Restarter/Forking.pm
+++ b/
lib/Catalyst/Restarter/Forking.pm
@@
-17,6
+17,9
@@
sub _fork_and_start {
$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->();
}
}