diff options
author | Richard Basch <probe@mit.edu> | 1994-02-17 11:08:43 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1994-02-17 11:08:43 +0000 |
commit | e3006becec88ae21c1136db6e46853eeab8bd5a1 (patch) | |
tree | 2d08edca25e9fcceafdb792f0731c5b82372904d /clients | |
parent | 58399cac5ca355dbdbd6ee5755351dc912eb731a (diff) |
The lock file needs to be opened for read/write, not just write.
Diffstat (limited to 'clients')
-rw-r--r-- | clients/zmailnotify/zmailnotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/zmailnotify/zmailnotify.c b/clients/zmailnotify/zmailnotify.c index beb4f4e..ba5f4bd 100644 --- a/clients/zmailnotify/zmailnotify.c +++ b/clients/zmailnotify/zmailnotify.c @@ -117,7 +117,7 @@ main(argc, argv) exit(1); } - lock = fopen(lockfile,"w"); + lock = fopen(lockfile,"r+"); #ifdef POSIX if (lock) { struct flock fl; |