ref: 6ddf9ac048b1440a328eb6273113ff177bdbf7ee
parent: b25d50d8af6ff86462de767d287e201691baf376
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Mar 3 03:08:09 EST 2021
do not get stuck (or crash) if a decoder program is absent
--- a/zuke.c
+++ b/zuke.c
@@ -599,7 +599,9 @@
}else{
execl("/bin/play", "play", "-o", "/fd/1", cur->path, nil);
}
- sysfatal("execl: %r");
+ close(0);
+ close(1);
+ exits("%r");
}
if(pid < 0)
sysfatal("rfork: %r");