Home | History | Annotate | Download | only in pppd

Lines Matching refs:lock_file

2519 static char lock_file[40];	/* name of lock file created */
2537 slprintf(lock_file, sizeof(lock_file), "%s%03d.%03d.%03d",
2541 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
2543 && (fd = open(lock_file, O_RDONLY, 0)) >= 0) {
2547 error("Can't read pid from lock file %s", lock_file);
2554 if (unlink(lock_file) == 0) {
2568 error("Can't create lock file %s: %m", lock_file);
2569 lock_file[0] = 0;
2586 if (lock_file[0]) {
2587 unlink(lock_file);
2588 lock_file[0] = 0;