* We do ship m4 and flex output now, so say so.
* install-sh updated to that from autoconf 2.53.
* Look for gmd5sum. (Thanks to Anton Altaparmakov for the report.)
+ * Use fcntl F_{GET,SET}FD with respect for as-yet-uninvented fd flags.
+ (small patch from Ben Harris.)
Debian:
* Priority changed to optional as per override file.
"-",
0
};
- int fd, realfd, holdfd, newfd, r, envvarbufsize=0, targ, nargs, i, l;
+ int fd, realfd, holdfd, newfd, r, envvarbufsize=0, targ, nargs, i, l, fdflags;
char *envvarbuf=0;
const char **args, *const *cpp;
char *const *pp;
}
if (dup2(fdarray[fd].realfd,fd)<0) serv_syscallfail("dup2 set up fd");
if (close(fdarray[fd].realfd)) serv_syscallfail("close old fd");
- if (fcntl(fd,F_SETFD,0)<0) serv_syscallfail("set no-close-on-exec on fd");
+ fdflags= fcntl(fd,F_GETFD); if (fdflags<0) serv_syscallfail("get fd flags");
+ if (fcntl(fd,F_SETFD,fdflags&~FD_CLOEXEC)==-1) serv_syscallfail("set no-close-on-exec on fd");
fdarray[fd].realfd= fd;
}