Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

IPC: only modify the dispatch if we get EAGAIN

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
  • Loading branch information...
commit 78374c2ed3d7dcec0d16170a35f46277e8faf81d 1 parent a441110
@asalkeld asalkeld authored
Showing with 7 additions and 8 deletions.
  1. +7 −8 lib/ipcs.c
View
15 lib/ipcs.c
@@ -325,15 +325,14 @@ new_event_notification(struct qb_ipcs_connection * c)
c->outstanding_notifiers++;
} else {
res = qb_ipc_us_send(&c->setup, &c->outstanding_notifiers, 1);
- if (res == 1) {
- return res;
+ if (res == -EAGAIN) {
+ /*
+ * notify the client later, when we can.
+ */
+ c->outstanding_notifiers++;
+ c->poll_events = POLLOUT | POLLIN | POLLPRI | POLLNVAL;
+ (void)_modify_dispatch_descriptor_(c);
}
- /*
- * notify the client later, when we can.
- */
- c->outstanding_notifiers++;
- c->poll_events = POLLOUT | POLLIN | POLLPRI | POLLNVAL;
- (void)_modify_dispatch_descriptor_(c);
}
return res;
}
Please sign in to comment.
Something went wrong with that request. Please try again.