diff options
Diffstat (limited to 'emulators/qemu-devel/files/patch-tapclose')
| -rw-r--r-- | emulators/qemu-devel/files/patch-tapclose | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/emulators/qemu-devel/files/patch-tapclose b/emulators/qemu-devel/files/patch-tapclose index 8a96e3592a05..a5b8dfb0bf3f 100644 --- a/emulators/qemu-devel/files/patch-tapclose +++ b/emulators/qemu-devel/files/patch-tapclose @@ -1,5 +1,5 @@ Index: qemu/net/tap.c -@@ -254,12 +254,12 @@ static void tap_cleanup(VLANClientState +@@ -287,12 +287,13 @@ static void tap_cleanup(VLANClientState qemu_purge_queued_packets(nc); @@ -11,7 +11,8 @@ Index: qemu/net/tap.c close(s->fd); + + if (s->down_script[0]) -+ launch_script(s->down_script, s->down_script_arg, -1); ++ launch_script(s->down_script, s->down_script_arg, s->fd); ++ + s->fd = -1; } - /* fd support */ |
