Source code is
(void)fread(pidstr,13,1,fd); pid = atoi(pidstr); if (pid && kill(pid, 0) == 0) return -1; /* we are already running */ fclose(fd);
Suggest make sure fclose is called before the return.
Log in to post a comment.