ref: f1e89731d431981623bc9f9481ec81fd02f0fe25
parent: 74264a3a65e3a9911270ae3ce3ebefa4d4254e42
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Dec 11 08:46:06 EST 2020
open audio and ivf stream with OCEXEC
--- a/main.c
+++ b/main.c
@@ -29,7 +29,7 @@
Stream *s;
int audiofd;
- if((audiofd = open("/dev/audio", OWRITE)) < 0){
+ if((audiofd = open("/dev/audio", OWRITE|OCEXEC)) < 0){
fprint(2, "runaudio: %r\n");
recvp(audiosync);
chanclose(audiosync);
--- a/stream_ivf.c
+++ b/stream_ivf.c
@@ -127,7 +127,7 @@
}
*num = 1;
- if(ivfopenb(Bopen(path, OREAD), s, failed) != 0){
+ if(ivfopenb(Bopen(path, OREAD|OCEXEC), s, failed) != 0){
free(s);
s = nil;
}