version 1.8, 2002/05/29 09:23:25 |
version 1.9, 2002/06/12 06:07:16 |
|
|
* The process that locked the file isn't running, so |
* The process that locked the file isn't running, so |
* we'll lock it ourselves |
* we'll lock it ourselves |
*/ |
*/ |
fprintf(stderr, "Stale lock on %s PID=%d... overriding.\n", |
fprintf(stderr, "Stale lock on %s PID=%ld... overriding.\n", |
ttyname, pid); |
ttyname, (long)pid); |
if (lseek(fd, (off_t)0, SEEK_SET) < 0) { |
if (lseek(fd, (off_t)0, SEEK_SET) < 0) { |
perror(tbuf); |
perror(tbuf); |
(void)close(fd); |
(void)close(fd); |