diff --git a/src/ipc/context.cr b/src/ipc/context.cr index fe94841..3aaecbc 100644 --- a/src/ipc/context.cr +++ b/src/ipc/context.cr @@ -43,7 +43,7 @@ class IPC::Context def wait_event(&block) : IPC::Event::Events | Exception event = LibIPC::Event.new - r = LibIPC.ipc_events_loop self.pointer, pointerof(event), pointerof(@timer) + r = LibIPC.ipc_wait_event self.pointer, pointerof(event), pointerof(@timer) if r.error_code != 0 m = String.new r.error_message.to_slice yield IPC::Exception.new "error waiting for a new event: #{m}" diff --git a/src/ipc/lowlevel.cr b/src/ipc/lowlevel.cr index f6dac44..40fe824 100644 --- a/src/ipc/lowlevel.cr +++ b/src/ipc/lowlevel.cr @@ -96,7 +96,7 @@ lib LibIPC fun ipc_ctx_free(Ctx*) # Void # Loop function. - fun ipc_events_loop(Ctx*, Event*, LibC::Int*) : IPCError + fun ipc_wait_event(Ctx*, Event*, LibC::Int*) : IPCError # Adding and removing file discriptors to read. fun ipc_add(Ctx*, Connection*, Pollfd*) : IPCError