Dr. Werner Fink 2013-09-18 09:41:16 +00:00 committed by Git OBS Bridge
parent 79aeeced3d
commit e48d785121

View File

@ -795,7 +795,7 @@
+ shp->sftable[fd] = sfnew(NIL(Sfio_t*),cp,r,-1,SF_READ|SF_STRING);
+ shp->fdstatus[fd] = shp->fdstatus[dupfd];
+ }
+ else if((fd=sh_fcntl(dupfd,F_DUPFD_CLOEXEC,3))<0)
+ else if((fd=sh_fcntl(dupfd,F_DUPFD,3))<0)
goto fail;
if(fd>= shp->gd->lim.open_max)
sh_iovalidfd(shp,fd);