aux/timesync: open /proc/n/ctl with OWRITE, not ORDWR

This commit is contained in:
cinap_lenrek 2020-03-08 03:12:00 +01:00
parent a0879abae4
commit 7aaa481f9f

View file

@ -817,7 +817,7 @@ setpriority(void)
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;