From e7895ac92c8398b1c554e218c373316356ccbd19 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 4 May 2000 13:40:05 +0000 Subject: close dump file descriptors in children (11151) --- Src/parse.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Src/parse.c') diff --git a/Src/parse.c b/Src/parse.c index b9ebad9a7..453e45ad0 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -3030,6 +3030,16 @@ decrdumpcount(FuncDump f) } } +/**/ +mod_export void +closedumps(void) +{ + FuncDump p; + + for (p = dumps; p; p = p->next) + zclose(p->fd); +} + #else void @@ -3042,6 +3052,11 @@ decrdumpcount(FuncDump f) { } +void +closedumps(void) +{ +} + #endif /**/ @@ -3070,3 +3085,4 @@ dump_autoload(char *nam, char *file, int on, char *ops, int func) } return ret; } + -- cgit 1.4.1