2018-09-17 20:35:10 +02:00
|
|
|
diff -uNr qemu-2.12.1/slirp/misc.c qemu-2.12.1.mod/slirp/misc.c
|
|
|
|
--- qemu-2.12.1/slirp/misc.c 2018-08-03 00:48:53.000000000 +0300
|
|
|
|
+++ qemu-2.12.1.mod/slirp/misc.c 2018-09-17 16:27:47.020729287 +0300
|
2018-09-17 13:27:14 +02:00
|
|
|
@@ -146,7 +146,7 @@
|
|
|
|
dup2(s, 0);
|
|
|
|
dup2(s, 1);
|
|
|
|
dup2(s, 2);
|
|
|
|
- for (s = getdtablesize() - 1; s >= 3; s--)
|
|
|
|
+ for (s = sysconf(_SC_OPEN_MAX) - 1; s >= 3; s--)
|
|
|
|
close(s);
|
|
|
|
|
|
|
|
i = 0;
|