Control: severity -1 normal

Hi,

this is still a problem on jessie with for instance buildd.  Consider this
simple perl script:

  #!/usr/bin/perl

  use strict;
  use warnings;

  my $pipe;
  my $pid = open($pipe, "-|");

  die "$pipe failed: $!" unless defined $pipe;

  if ($pid == 0) {
    open(STDERR, '>&', \*STDOUT);
    exec qw{ssh [email protected] moo};
    exit
  };

  print while (<$pipe>);
  close $pipe;
  print "done.\n";

If ssh [email protected] launches a control master, this script will
never terminate.

Cheers,
weasel
-- 
                           |  .''`.       ** Debian **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]

Reply via email to