In IPC::Open3::_open(), use 3 argument open to avoid a special case for STDERR.
authorNicholas Clark <nick@ccl4.org>
Mon, 6 Jun 2011 20:45:46 +0000 (22:45 +0200)
committerNicholas Clark <nick@ccl4.org>
Sat, 11 Jun 2011 06:48:13 +0000 (08:48 +0200)
commit1ede20e6f8f8e8421610e16743bfed46dc90efb0
tree98a199f4f63cc5ffd1e13a45699e2608e0fbf31e
parentea87ae30b28ea730a13b7888089b708bdb0f0991
In IPC::Open3::_open(), use 3 argument open to avoid a special case for STDERR.

The code for STDIN and STDOUT never ends up needing to duplicate a reference.
The code for STDERR can, because of the earlier special case code to save
STDOUT. It was special-cased to use fileno in commit 8b3e92c60014b4e7, in 1998.
This was before 3 argument open. With 3 argument open the special case can be
avoided.
ext/IPC-Open3/lib/IPC/Open3.pm