]> git.vpit.fr Git - perl/modules/rgit.git/commitdiff
Set a process group when possible
authorVincent Pit <vince@profvince.com>
Tue, 7 Oct 2008 20:27:35 +0000 (22:27 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 7 Oct 2008 20:27:35 +0000 (22:27 +0200)
bin/rgit

index 2efd7b8ea1d129d8f566570a7ff9f951037c854f..ca7b0f34b2bcb710e34391329a85b19335a3aea9 100755 (executable)
--- a/bin/rgit
+++ b/bin/rgit
@@ -4,6 +4,7 @@ use strict;
 use warnings;
 
 use Carp qw/croak/;
+use Config qw/%Config/;
 use Cwd qw/cwd/;
 use File::Spec::Functions qw/catfile path/;
 use List::Util qw/first/;
@@ -44,6 +45,8 @@ BEGIN {
  }
 }
 
+setpgrp 0, 0 if $Config{d_setpgrp};
+
 my $cmd = first { !/^-/ } @ARGV;
 $cmd = ' ' unless defined $cmd;