return false;
}
-bool containSetupFD(struct nsjconf_t * nsjconf, int fd_in, int fd_out, int fd_err, int fd_log)
+bool containSetupFD(struct nsjconf_t * nsjconf, int fd_in, int fd_out, int fd_err)
{
- /* Make sure all logs go to the parent process from now on */
- if (fd_log != -1) {
- logRedirectLogFD(fd_log);
- }
-
if (nsjconf->mode != MODE_LISTEN_TCP) {
if (nsjconf->is_silent == false) {
return true;
#include "common.h"
-bool containSetupFD(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_err, int fd_log);
+bool containSetupFD(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_err);
bool containContain(struct nsjconf_t *nsjconf);
#endif /* NS_CONTAIN_H */
static int subprocNewProc(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_err, int pipefd)
{
- if (containSetupFD(nsjconf, fd_in, fd_out, fd_err, pipefd) == false) {
+ if (containSetupFD(nsjconf, fd_in, fd_out, fd_err) == false) {
exit(1);
}
char doneChar;