X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fpopen.c;h=8448b7311d18049b185f686b2b92a2abb00fa527;hb=f5fef72a72cfc1c799b7a9b37ff2dfa25e731420;hp=6bae57c5e9115597bacb0dca02efdd00db1213ba;hpb=344698499bdc0b2674011bc4719e00dad0924de1;p=netdata.git diff --git a/src/popen.c b/src/popen.c index 6bae57c5..8448b731 100644 --- a/src/popen.c +++ b/src/popen.c @@ -138,7 +138,7 @@ FILE *mypopen(const char *command, pid_t *pidptr) error("pre-execution of command '%s' on pid %d: failed to set default signal handler for SIGUSR2.", command, getpid()); } - info("executing command: '%s' on pid %d.", command, getpid()); + debug(D_CHILDS, "executing command: '%s' on pid %d.", command, getpid()); execl("/bin/sh", "sh", "-c", command, NULL); exit(1); } @@ -150,7 +150,7 @@ int mypclose(FILE *fp, pid_t pid) { // close the pipe fd // this is required in musl - // without the childs do not exit + // without it the childs do not exit close(fileno(fp)); // close the pipe file pointer