mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
libink: let a handler park its call and reply later
The park machinery was welded to broker uid resolution; a handler that cannot answer yet, like a device-settle call waiting for the event queue to drain, had no way to defer. link_call_park() holds the request, link_call_resume() re-runs the handler with link_call_resumed() reading true, and the expire sweep remains the backstop for a resume that never comes. Resume also no longer drops a local caller's kernel group set in the privileged re-check: group source now keys on broker-ness. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+88
-11
No files matched your search
+1
-1
@@ -21,8 +21,8 @@ ssize_t __w_finish(struct link_writer *w);
|
||||
|
||||
void __w_byte (struct link_writer *w, uint8_t v);
|
||||
void __w_bool (struct link_writer *w, int v);
|
||||
void __w_u64 (struct link_writer *w, uint64_t v);
|
||||
void __w_u32 (struct link_writer *w, uint32_t v);
|
||||
void __w_u64 (struct link_writer *w, uint64_t v);
|
||||
void __w_string (struct link_writer *w, const char *s); /* "s" */
|
||||
void __w_path (struct link_writer *w, const char *s); /* "o" */
|
||||
void __w_sig (struct link_writer *w, const char *s); /* "g" */
|
||||
|
||||
Reference in new issue
Block a user