We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source code is
if((fp = fopen(GPM_NODE_PID, "r")) != NULL) { fscanf(fp, "%d", &old_pid); if (kill(old_pid,0) == -1) { gpm_report(GPM_PR_INFO,GPM_MESS_STALE_PID, GPM_NODE_PID); unlink(GPM_NODE_PID); } else /* we are really running, exit asap! / gpm_report(GPM_PR_OOPS,GPM_MESS_ALREADY_RUN, old_pid); } / now try to sign ourself */ if ((fp = fopen(GPM_NODE_PID,"w")) != NULL) {
So if the first fopen succeeds, then there seems to be a missing call to fclose.
The text was updated successfully, but these errors were encountered:
You might be right - can you send a pull request for a patch?
Sorry, something went wrong.
No branches or pull requests
Source code is
if((fp = fopen(GPM_NODE_PID, "r")) != NULL) {
fscanf(fp, "%d", &old_pid);
if (kill(old_pid,0) == -1) {
gpm_report(GPM_PR_INFO,GPM_MESS_STALE_PID, GPM_NODE_PID);
unlink(GPM_NODE_PID);
} else /* we are really running, exit asap! /
gpm_report(GPM_PR_OOPS,GPM_MESS_ALREADY_RUN, old_pid);
}
/ now try to sign ourself */
if ((fp = fopen(GPM_NODE_PID,"w")) != NULL) {
So if the first fopen succeeds, then there seems to be a missing call to fclose.
The text was updated successfully, but these errors were encountered: