Revision 485e741c
b/qga/commands-posix.c | ||
---|---|---|
99 | 99 |
reopen_fd_to_null(1); |
100 | 100 |
reopen_fd_to_null(2); |
101 | 101 |
|
102 |
execle("/sbin/shutdown", "shutdown", shutdown_flag, "+0", |
|
102 |
execle("/sbin/shutdown", "shutdown", "-h", shutdown_flag, "+0",
|
|
103 | 103 |
"hypervisor initiated shutdown", (char*)NULL, environ); |
104 | 104 |
_exit(EXIT_FAILURE); |
105 | 105 |
} else if (pid < 0) { |
Also available in: Unified diff