better locking

This commit is contained in:
rsc 2006-05-21 18:40:15 +00:00
parent f1007ee0c6
commit 1b827fbc0c

View file

@ -278,6 +278,7 @@ sysopen(char *path, char *mode, ulong perm)
break; break;
case 'l': case 'l':
sysperm |= DMEXCL; sysperm |= DMEXCL;
sysmode |= OLOCK;
break; break;
case 'a': case 'a':
sysperm |= DMAPPEND; sysperm |= DMAPPEND;