ports/emulators/qemu-devel/files/patch-tapclose
Juergen Lock b7e9b8d7f4 - Update to 0.14.0 .
- Update amd64 host bsd-user linker script to fix build on
  -current/amd64. [1]
- Some updates to the pkg-message.

PR:		ports/155558 [1]
Submitted by:	Garrett Cooper <yanegomi@gmail.com> [1]
2011-04-01 19:30:21 +00:00

18 lines
415 B
Text

Index: qemu/net/tap.c
@@ -287,12 +287,13 @@ 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, s->fd);
+
s->fd = -1;
}