ports/emulators/qemu-devel/files/patch-tapclose
Juergen Lock d4e5177000 Finally bring qemu 0.12.1 into ports as the new emulators/qemu-devel,
release announcement is here:
	http://lists.gnu.org/archive/html/qemu-devel/2009-12/msg02151.html

Quoting from pkg-message:

- kqemu is no longer supported in qemu upstream after the 0.11 branch
was created, which means also not in this version.  (Linux has moved
on to kvm now for qemu(-like) virtualization needs, so if you want qemu
to go faster and don't want to switch to virtualbox or stick to the older
emulators/qemu port which is at 0.11.1 atm and as such still supports
kqemu you should help getting the FreeBSD kvm port updated and
completed:
	http://wiki.freebsd.org/FabioChecconi/PortingLinuxKVMToFreeBSD
)
2010-01-17 16:20:56 +00:00

17 lines
411 B
Text

Index: qemu/net/tap.c
@@ -254,12 +254,12 @@ static void tap_cleanup(VLANClientState
qemu_purge_queued_packets(nc);
- if (s->down_script[0])
- launch_script(s->down_script, s->down_script_arg, s->fd);
-
tap_read_poll(s, 0);
tap_write_poll(s, 0);
close(s->fd);
+
+ if (s->down_script[0])
+ launch_script(s->down_script, s->down_script_arg, -1);
}
/* fd support */