ref: 9ce9299d17b565cb20e94cd39563fbb30533b5a8
parent: 6064e1b6fbc4b500e125272fca374b1b5e1df760
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 26 19:01:39 EST 2017
games/doom: ... but keep fd=2 open :)
--- a/sys/src/games/doom/i_sound.c
+++ b/sys/src/games/doom/i_sound.c
@@ -461,7 +461,7 @@
break;
case 0:
dup(mpfd[1], 1);
- for(n=2; n<20; n++) close(n);
+ for(n=3; n<20; n++) close(n);
close(0);
snprint(name, sizeof(name), "/tmp/%s.mus", m->name);
if(create(name, ORDWR, 0666) != 0)