Removed some debug logging

This commit is contained in:
Michiel Broek 2006-04-17 08:00:54 +00:00
parent 5511c8bef5
commit 5faf06a2aa
2 changed files with 4 additions and 8 deletions

View File

@ -6,6 +6,9 @@ v0.83.18 01-Apr-2006
Fixed parsing the nodelist when IBN:1.2.3.4 returned the IP Fixed parsing the nodelist when IBN:1.2.3.4 returned the IP
address 1.2.3.4 with port 1. address 1.2.3.4 with port 1.
mbtask:
Removed some debug logging.
v0.83.17 27-Mar-2006 - 01-Apr-2006 v0.83.17 27-Mar-2006 - 01-Apr-2006

View File

@ -469,7 +469,6 @@ pid_t launch(char *cmd, char *opts, char *name, int tasktype)
int i, rc = 0; int i, rc = 0;
pid_t pid = 0; pid_t pid = 0;
Syslog('r', "launch() entered");
if (checktasks(0) >= MAXTASKS) { if (checktasks(0) >= MAXTASKS) {
Syslog('?', "Launch: can't execute %s, maximum tasks reached", cmd); Syslog('?', "Launch: can't execute %s, maximum tasks reached", cmd);
return 0; return 0;
@ -491,8 +490,6 @@ pid_t launch(char *cmd, char *opts, char *name, int tasktype)
return 0; return 0;
} }
Syslog('r', "launch() step 2");
switch (pid = fork()) { switch (pid = fork()) {
case -1: case -1:
WriteError("$Launch: error, can't fork grandchild"); WriteError("$Launch: error, can't fork grandchild");
@ -504,7 +501,6 @@ pid_t launch(char *cmd, char *opts, char *name, int tasktype)
*/ */
msleep(150); msleep(150);
Syslog('r', "launch() step 3");
/* From Paul Vixies cron: */ /* From Paul Vixies cron: */
rc = setsid(); /* It doesn't seem to help */ rc = setsid(); /* It doesn't seem to help */
if (rc == -1) if (rc == -1)
@ -526,7 +522,6 @@ pid_t launch(char *cmd, char *opts, char *name, int tasktype)
_exit(MBERR_EXEC_FAILED); _exit(MBERR_EXEC_FAILED);
} }
errno = 0; errno = 0;
Syslog('r', "launch() step 4");
rc = execv(vector[0],vector); rc = execv(vector[0],vector);
Syslog('?', "$Launch: execv \"%s\" failed, returned %d", cmd, rc); Syslog('?', "$Launch: execv \"%s\" failed, returned %d", cmd, rc);
_exit(MBERR_EXEC_FAILED); _exit(MBERR_EXEC_FAILED);
@ -535,7 +530,6 @@ pid_t launch(char *cmd, char *opts, char *name, int tasktype)
break; break;
} }
Syslog('r', "launch() step 5");
/* /*
* Add it to the tasklist. * Add it to the tasklist.
*/ */
@ -709,7 +703,7 @@ int checktasks(int onsig)
*/ */
void start_shutdown(int onsig) void start_shutdown(int onsig)
{ {
Syslog('s', "Trigger shutdown on signal %s", SigName[onsig]); Syslog('+', "Trigger shutdown on signal %s", SigName[onsig]);
signal(onsig, SIG_IGN); signal(onsig, SIG_IGN);
G_Shutdown = TRUE; G_Shutdown = TRUE;
} }
@ -1141,7 +1135,6 @@ void scheduler(void)
pfd[2].revents = 0; pfd[2].revents = 0;
rc = poll(pfd, 3, 1000); rc = poll(pfd, 3, 1000);
// Syslog('s', "poll() rc=%d", rc);
if (rc == -1) { if (rc == -1) {
/* /*
* Poll can be interrupted by a finished child so that's not a real error. * Poll can be interrupted by a finished child so that's not a real error.