Skip to content

Commit

Permalink
app-emulation/qemu-guest-agent: fix shutdown command
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/681874
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <[email protected]>
  • Loading branch information
tamiko committed Apr 18, 2020
1 parent 1e3a1a4 commit 8b8e828
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- qemu-4.2.0/qga/commands-posix.c.orig 2020-03-23 11:15:05.972610989 +0300
+++ qemu-4.2.0/qga/commands-posix.c 2020-03-23 11:15:39.676015087 +0300
@@ -108,7 +108,7 @@
reopen_fd_to_null(1);
reopen_fd_to_null(2);

- execle("/sbin/shutdown", "shutdown", "-h", shutdown_flag, "+0",
+ execle("/sbin/shutdown", "shutdown", "-h", "now", shutdown_flag, "+0",
"hypervisor initiated shutdown", (char*)NULL, environ);
_exit(EXIT_FAILURE);
} else if (pid < 0) {
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ S="${WORKDIR}/${MY_P}"

PATCHES=(
"${FILESDIR}"/${PN}-4.2.0-sysmacros.patch #580924
"${FILESDIR}"/${PN}-4.2.0-fix-shutdown.patch #681874
)

src_configure() {
Expand Down

0 comments on commit 8b8e828

Please sign in to comment.