bbslink2.c
里面 if (read(lockfd, buf, sizeof buf) > 0 &&
(pid = atoi(buf)) > 0 && kill(pid, 0) == 0) {
if (KillFormerBBSLINK) {
kill(pid, SIGTERM);
unlink(LockFile);
} else {
fprintf(stderr, "another process [%d] running\n", pid);
return 0;
}
} else {
fprintf(stderr, "no process [%d] running, but lock file existed, unlinked\n", pid);
unlink(LockFile);
}
close(lockfd);
}
--
FROM 202.202.43.*