aux/timesync: open /proc/n/ctl with OWRITE, not ORDWR
This commit is contained in:
parent
a0879abae4
commit
7aaa481f9f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue