ref: b7d49ac479f7803ba34d68380dea204c328519a8
parent: fba5e1388521bb6e7d091338ca6fc70ccde4f030
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Dec 6 12:07:48 EST 2019
coverload: make sure there is stderr
--- a/zuke.c
+++ b/zuke.c
@@ -281,7 +281,7 @@
if((pid = rfork(RFPROC|RFFDG|RFREND|RFNOTEG)) == 0){
dup(fd, 0); close(fd);
dup(p[1], 1); close(p[1]);
- close(2);
+ dup(open("/dev/null", OWRITE), 2);
snprint(tmp, sizeof(tmp), "%s -9t | resample -x128", prog);
execl("/bin/rc", "rc", "-c", tmp, nil);
sysfatal("execl: %r");