ref: 7aaa481f9f89f393e94e311d3b62577cfb1cd8d9
parent: a0879abae40625f586a0af5621e7a29f8b5a568f
author: cinap_lenrek <[email protected]>
date: Sat Mar 7 22:12:00 EST 2020
aux/timesync: open /proc/n/ctl with OWRITE, not ORDWR
--- a/sys/src/cmd/aux/timesync.c
+++ b/sys/src/cmd/aux/timesync.c
@@ -817,7 +817,7 @@
char buf[32];
sprint(buf, "/proc/%d/ctl", getpid());
- fd = open(buf, ORDWR);
+ fd = open(buf, OWRITE);
if(fd < 0){
fprint(2, "can't set priority\n");
return;