Use dup2() rather than eth_close() followed by dup() to ensure that a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 9 Jan 2008 11:40:38 +0000 (11:40 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 9 Jan 2008 11:40:38 +0000 (11:40 +0000)
commit93368eb2b1901a55984220160a2418afe06b2b88
treec675de6bfbcb03f817adace287aec624d85a1982
parent8c6e3cd60b0839a401a6936607b2bfe57bc2b6f2
Use dup2() rather than eth_close() followed by dup() to ensure that a
given file descriptor get duped to another descriptor.

Handle exec errors in sync_pipe_open_command() the same way they're
handled in sync_pipe_start(); that fixes bug 2177.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24040 f5534014-38df-0310-8fa8-9805f1628bb7
capture_sync.c