Fix procd's handling of stdio file descriptors. #2595
Fix procd's handling of stdio file descriptors. #2595

The procd used to close stdin, stdout, and stderr and leave them closed.
Then it would open other files, which would receive file descrptors 0,
1, and 2. This is potentially dangerous. Now, the procd reopens
stdin/out/err to the null file (/dev/null on unix, NUL on windows).
===VersionHistory:None===

htcondor/htcondor,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,zhangzhehust/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/condor,htcondor/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,htcondor/htcondor,neurodebian/htcondor,djw8605/htcondor,neurodebian/htcondor,djw8605/htcondor,mambelli/osg-bosco-marco,neurodebian/htcondor,htcondor/htcondor,djw8605/condor,neurodebian/htcondor,zhangzhehust/htcondor,djw8605/condor,htcondor/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,djw8605/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,bbockelm/condor-network-accounting,djw8605/condor,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/condor,djw8605/htcondor,djw8605/htcondor,bbockelm/condor-network-accounting,djw8605/condor,bbockelm/condor-network-accounting,djw8605/htcondor,bbockelm/condor-network-accounting,djw8605/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,htcondor/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,djw8605/htcondor,djw8605/condor,bbockelm/condor-network-accounting,djw8605/htcondor,neurodebian/htcondor,djw8605/condor,zhangzhehust/htcondor,neurodebian/htcondor