On Wednesday 24 October 2001 10:47 am, David Chin wrote:
> Howdy,
>
> I'm running amanda 2.4.2p2 on RH7.1 Linux and HP-UX 10.20, with a Linux box
> acting as server. On the server, there is a "gzip --best" process running
> even though I have "compress none" in the "global" configuration. Is this
> normal?
>
> --Dave Chin
> [EMAIL PROTECTED]
From dumper.c:
switch(compresspid=fork()) {
case 0:
aclose(outpipe[0]);
/* child acts on stdin/stdout */
if (dup2(outpipe[1],1) == -1)
fprintf(stderr, "err dup2 out: %s\n", strerror(errno));
if (dup2(tmpfd, 0) == -1)
fprintf(stderr, "err dup2 in: %s\n", strerror(errno));
for(tmpfd = 3; tmpfd <= FD_SETSIZE; ++tmpfd) {
close(tmpfd);
}
/* now spawn gzip -1 to take care of the rest */
execlp(COMPRESS_PATH, COMPRESS_PATH,
(srvcompress == srvcomp_best ? COMPRESS_BEST_OPT
: COMPRESS_FAST_OPT),
(char *)0);
error("error: couldn't exec %s.\n", COMPRESS_PATH);
}
It looks like it always spawns off a child to run gzip.