* [pve-devel] [PATCH qemu-server] fix #4737: qmeventd: gracefully handle interrupted epoll_wait call
@ 2023-05-24 10:30 Fiona Ebner
2023-05-24 15:12 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Fiona Ebner @ 2023-05-24 10:30 UTC (permalink / raw)
To: pve-devel
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
qmeventd/qmeventd.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/qmeventd/qmeventd.c b/qmeventd/qmeventd.c
index 499376ae..a843da5f 100644
--- a/qmeventd/qmeventd.c
+++ b/qmeventd/qmeventd.c
@@ -687,6 +687,9 @@ main(int argc, char *argv[])
for(;;) {
nevents = epoll_wait(epoll_fd, events, 1, needs_cleanup ? 10*1000 : -1);
+ if (nevents < 0 && errno == EINTR) {
+ continue;
+ }
bail_neg(nevents, "epoll_wait");
for (int n = 0; n < nevents; n++) {
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH qemu-server] fix #4737: qmeventd: gracefully handle interrupted epoll_wait call
2023-05-24 10:30 [pve-devel] [PATCH qemu-server] fix #4737: qmeventd: gracefully handle interrupted epoll_wait call Fiona Ebner
@ 2023-05-24 15:12 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2023-05-24 15:12 UTC (permalink / raw)
To: Proxmox VE development discussion, Fiona Ebner
Am 24/05/2023 um 12:30 schrieb Fiona Ebner:
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
> qmeventd/qmeventd.c | 3 +++
> 1 file changed, 3 insertions(+)
>
>
applied and cherry-picked to stable-7, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-24 15:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-24 10:30 [pve-devel] [PATCH qemu-server] fix #4737: qmeventd: gracefully handle interrupted epoll_wait call Fiona Ebner
2023-05-24 15:12 ` [pve-devel] applied: " Thomas Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal