Don't NULL out p_fd until after closefd() has been called.  This isn't totally correct, but it has caused breakage for too long.  I welcome someone with more fd fu to fix it correctly.
Don't NULL out p_fd until after closefd() has been called.  This isn't
totally correct, but it has caused breakage for too long.  I welcome
someone with more fd fu to fix it correctly.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase