]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - bin/rgit
Set a process group when possible
[perl/modules/rgit.git] / 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;