Source code is
if((fscanf(fd, "%d", &tmppid) != 1) || tmppid < 1) { msgln(unlog, 0, "Warning : Cannot get current maximum PID, error parsing %s format. Using default value %d", path, * newmaxpid) ; return; }
Suggest add missing call to fclose.
Log in to post a comment.