$ strace -f -e clone,execve perl -e'open(my $fh, "|-", "nonexistent program")' execve("/usr/bin/perl", ["perl", "-eopen(my $fh, \"|-\", \"nonexisten"...], [/* 45 vars */]) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb74f7a68) = 7792 Process 7792 attached [pid 7792] execve("/home/aitap/perl5/bin/nonexistent", ["nonexistent", "program"], [/* 45 vars */]) = -1 ENOENT (No such file or directory) [pid 7792] execve("/home/aitap/scripts/nonexistent", ["nonexistent", "program"], [/* 45 vars */]) = -1 ENOENT (No such file or directory) [pid 7792] execve("/home/aitap/bin/nonexistent", ["nonexistent", "program"], [/* 45 vars */]) = -1 ENOENT (No such file or directory) [pid 7792] execve("/usr/local/bin/nonexistent", ["nonexistent", "program"], [/* 45 vars */]) = -1 ENOENT (No such file or directory) [pid 7792] execve("/usr/bin/nonexistent", ["nonexistent", "program"], [/* 45 vars */]) = -1 ENOENT (No such file or directory) [pid 7792] execve("/bin/nonexistent", ["nonexistent", "program"], [/* 45 vars */]) = -1 ENOENT (No such file or directory) [pid 7792] execve("/usr/local/games/nonexistent", ["nonexistent", "program"], [/* 45 vars */]) = -1 ENOENT (No such file or directory) [pid 7792] execve("/usr/games/nonexistent", ["nonexistent", "program"], [/* 45 vars */]) = -1 ENOENT (No such file or directory) [pid 7792] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7792, si_uid=1000, si_status=1, si_utime=0, si_stime=0} --- +++ exited with 0 +++