diff --git a/dispvm/qubes-restore.c b/dispvm/qubes-restore.c index 8b6af13a..0db9140c 100644 --- a/dispvm/qubes-restore.c +++ b/dispvm/qubes-restore.c @@ -465,6 +465,8 @@ void redirect_stderr(void) exit(1); } dup2(fd, 2); + if (fd != 2) + close(fd); }