aboutsummaryrefslogtreecommitdiffstats
path: root/src/event_pipe.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/event_pipe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/event_pipe.c b/src/event_pipe.c
index 448903410..318e59df6 100644
--- a/src/event_pipe.c
+++ b/src/event_pipe.c
@@ -137,6 +137,14 @@ void event_pipe_emit(enum pipe_event event)
g_error("error writing to pipe: %s", strerror(errno));
}
+void event_pipe_emit_fast(enum pipe_event event)
+{
+ assert((unsigned)event < PIPE_EVENT_MAX);
+
+ pipe_events[event] = true;
+ write(event_pipe[1], "", 1);
+}
+
void event_pipe_signal(void)
{
event_pipe_emit(PIPE_EVENT_SIGNAL);