my $pid; { local $SIG{HUP} = $SIG{INT}; $pid = open2($rdhndl,$wrhndl,"app1 URL | app2") or die $!; }