Commit 76136885 authored by Max Kellermann's avatar Max Kellermann

main_notify: removed assertion in wakeup_main_task()

It is legal to call wakeup_main_task() from within the main thread, e.g. from within a signal handler. Remove the assertion.
parent 1db88364
...@@ -85,8 +85,6 @@ static int wakeup_via_pipe(void) ...@@ -85,8 +85,6 @@ static int wakeup_via_pipe(void)
void wakeup_main_task(void) void wakeup_main_task(void)
{ {
assert(!pthread_equal(main_task, pthread_self()));
main_notify.pending = 1; main_notify.pending = 1;
if (!wakeup_via_pipe()) if (!wakeup_via_pipe())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment