Skip to content

Commit

Permalink
Remove debugging syslog() statements.
Browse files Browse the repository at this point in the history
This was leftover from an attempt years ago to see what internal
variables looked like on a uclibc system.
  • Loading branch information
dcantrell committed Oct 7, 2012
1 parent 9403544 commit aed1c3f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions proc.c
Expand Up @@ -101,22 +101,16 @@ pid_t pidof(char *cmd) {
return -1;
}

syslog(LOG_ERR, "%s cmd: |%s|", __func__, cmd);

if ((realcmd = realpath(which(cmd), cmdbuf)) == NULL) {
syslog(LOG_ERR, "realpath failure: %s:%d", __func__, __LINE__);
return -1;
}

syslog(LOG_ERR, "%s realcmd: |%s|", __func__, realcmd);

if ((realwatch = realpath(which("vpncwatch"), watchbuf)) == NULL) {
syslog(LOG_ERR, "realpath failure: %s:%d", __func__, __LINE__);
return -1;
}

syslog(LOG_ERR, "%s realwatch: |%s|", __func__, realwatch);

if ((dp = opendir("/proc")) == NULL) {
syslog(LOG_ERR, "opendir failure: %s:%d", __func__, __LINE__);
return -1;
Expand All @@ -131,7 +125,6 @@ syslog(LOG_ERR, "%s realwatch: |%s|", __func__, realwatch);
continue;
}

syslog(LOG_ERR, "|%s|", de->d_name);
if (procpath != NULL) {
free(procpath);
}
Expand Down

0 comments on commit aed1c3f

Please sign in to comment.