ref: 0c754176b71a13c1918c706d497d3e410a582250
parent: 33c7f936afce0dff26dd895962d8721e499997d7
author: Sigrid Haflínudóttir <[email protected]>
date: Fri Dec 6 12:24:48 EST 2019
player: dup /dev/null on fd=2
--- a/zuke.c
+++ b/zuke.c
@@ -398,7 +398,7 @@
dup(p[0], 1); close(p[0]);
dup(fd, 0); close(fd);
close(p[1]);
- close(2);
+ dup(open("/dev/null", OWRITE), 2);
execl("/bin/play", "play", "-o", "/fd/1", nil);
sysfatal("execl: %r");
}