ref: b5f269b1312d2643de9d1c9553b3715c21cb7122
parent: 43c93c794b08a3e42ed20644e85243ea22c61c8b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 8 09:13:25 EDT 2020
games/playlistfs: open /proc/n/ctl OWRITE, not ORDWR
--- a/sys/src/games/music/playlistfs/player.c
+++ b/sys/src/games/music/playlistfs/player.c
@@ -81,7 +81,7 @@
char *ctl;
ctl = smprint("/proc/%ud/ctl", getpid());- if((fd = open(ctl, ORDWR)) < 0)
+ if((fd = open(ctl, OWRITE)) < 0)
sysfatal("%s: %r", ctl);if(fprint(fd, "period 20ms") < 0)
sysfatal("%s: %r", ctl);@@ -102,7 +102,7 @@
char *ctl;
ctl = smprint("/proc/%ud/ctl", getpid());- if((fd = open(ctl, ORDWR)) >= 0) {+ if((fd = open(ctl, OWRITE)) >= 0) {fprint(fd, "pri 13");
close(fd);
}
--
⑨