X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FConnection.pm;h=307cde303ae48e6c1eb90d621e978e4608fd5855;hp=136b065aac3284ed345cbe598a5e595b1ac155e2;hb=eb351344773af82344bd550ffd5a8814b816cfeb;hpb=572a9a00cec239943f92157ec39c44398aad137f 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); };