diff options
Diffstat (limited to 'daemon/proto.c')
-rw-r--r-- | daemon/proto.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon/proto.c b/daemon/proto.c index 88e2d28c..238ee88c 100644 --- a/daemon/proto.c +++ b/daemon/proto.c @@ -101,6 +101,12 @@ main_loop (int _sock) "guestfsd: main_loop: new request, len 0x%" PRIx32 "\n", len); + /* Cancellation sent from the library and received after the + * previous request has finished processing. Just ignore it. + */ + if (len == GUESTFS_CANCEL_FLAG) + continue; + if (len > GUESTFS_MESSAGE_MAX) { fprintf (stderr, "guestfsd: incoming message is too long (%u bytes)\n", len); |