X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FConnection.pm;h=307cde303ae48e6c1eb90d621e978e4608fd5855;hb=977ec25d052fe4f70ebab44b159bb6dc11ce4240;hp=136b065aac3284ed345cbe598a5e595b1ac155e2;hpb=b0ec7e3b19d47b9ba5a864f5077d0dc8030834cc;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/Connection.pm b/lib/Object/Remote/Connection.pm index 136b065..307cde3 100644 --- a/lib/Object/Remote/Connection.pm +++ b/lib/Object/Remote/Connection.pm @@ -23,6 +23,9 @@ BEGIN { router()->exclude_forwarding } END { log_debug { "Killing all child processes in the process group" }; + #FIXME update along with setpgrp() to not use a process + #group anymore + #send SIGINT to the process group for our children kill(1, -2); } @@ -94,6 +97,8 @@ after BUILD => sub { log_trace { "Setting process group of child process '$pid'" }; + #FIXME moving things into a process group has side effects for + #users of the library - move to a list setpgrp($self->child_pid, 1); };