summaryrefslogtreecommitdiffstats
path: root/auto-virtserial-guest.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto-virtserial-guest.c')
-rw-r--r--auto-virtserial-guest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/auto-virtserial-guest.c b/auto-virtserial-guest.c
index 10daeb5..85d5758 100644
--- a/auto-virtserial-guest.c
+++ b/auto-virtserial-guest.c
@@ -713,6 +713,9 @@ back_to_open:
ret = get_sigio_result(gpkt.value);
send_report(cfd, ret);
break;
+ case KEY_SHUTDOWN:
+ system("shutdown -h now");
+ break;
default:
send_report(cfd, -ERANGE);
break;