aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2023-05-24 15:39:52 +0100
committerMarc Zyngier <maz@kernel.org>2023-05-24 15:39:52 +0100
commitafe90a7d89f4ece38f65c097e90d5f8f5acf17b1 (patch)
treeef9e9d2723b4d17cb15d62cd199c1ed0acf2365e
parenta6358cd5a08917fb0611ab08fffaa2ce04a8e3d6 (diff)
downloadcs-sw-afe90a7d89f4ece38f65c097e90d5f8f5acf17b1.tar.gz
Inject interrupt on forced disconnect
Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--vdmtool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vdmtool.c b/vdmtool.c
index cdbc88b..0992d3c 100644
--- a/vdmtool.c
+++ b/vdmtool.c
@@ -534,6 +534,7 @@ static bool serial_handler(struct vdm_context *cxt)
vdm_pd_reset(cxt);
break;
case 0x18: /* ^X */
+ cxt->pending = true;
evt_disconnect(cxt);
break;
case '?':