diff options
Diffstat (limited to 'fish/reopen.c')
-rw-r--r-- | fish/reopen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fish/reopen.c b/fish/reopen.c index 56c189ea..585bbd23 100644 --- a/fish/reopen.c +++ b/fish/reopen.c @@ -83,5 +83,12 @@ run_reopen (const char *cmd, size_t argc, char *argv[]) guestfs_close (g); g = g2; + /* We don't bother copying event handlers over to the new handle, + * but we have to reset the list because they were registered + * against the old handle. + */ + free_event_handlers (); + init_event_handlers (); + return 0; } |