Hide Forgot
Description of problem: If the last read request returns an empty string, the command output is not getting logged. Bug is around line 462 of rhnsd.c: ret = waitpid(child, &retval, WNOHANG); if (ret == child) { /* huh, status changed, we're done */ if (strlen(buffer) > 0) syslog(LOG_INFO, "%s returned: %s", RHN_CHECK, buf); free(buf); close(fds[0]); /* plug in fd leak */ Instead of: if (strlen(buffer) > 0) this should be: if (strlen(buf) > 0)
In current version of Spacewalk 2.9 rhnsd has been replaced by systemd timer.