projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
closefds() doesn't seem relevant or large enough to be a function.
[mmh]
/
uip
/
repl.c
diff --git
a/uip/repl.c
b/uip/repl.c
index
be4eb40
..
3c9e483
100644
(file)
--- a/
uip/repl.c
+++ b/
uip/repl.c
@@
-766,7
+766,7
@@
insert(struct mailname *np)
static void
replfilter(FILE *in, FILE *out, char *filter)
{
static void
replfilter(FILE *in, FILE *out, char *filter)
{
- int pid;
+ int pid, n;
char *errstr;
if (filter == NULL)
char *errstr;
if (filter == NULL)
@@
-785,7
+785,9
@@
replfilter(FILE *in, FILE *out, char *filter)
case OK:
dup2(fileno(in), fileno(stdin));
dup2(fileno(out), fileno(stdout));
case OK:
dup2(fileno(in), fileno(stdin));
dup2(fileno(out), fileno(stdout));
- closefds(3);
+ for (n=3; n<OPEN_MAX; n++) {
+ close(n);
+ }
execlp("mhl", "mhl", "-form", filter, NULL);
errstr = strerror(errno);
execlp("mhl", "mhl", "-form", filter, NULL);
errstr = strerror(errno);