diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-23 09:07:26 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-23 09:07:55 +0200 |
| commit | 5fa367c2cf5c83ed4beee05dd4ce54489a487ab7 (patch) | |
| tree | c3ab2be92f3728c017930cf39b3f5a5ed6b3cc72 /src | |
| parent | 332003cd136f39c1f42d344efecebaf976c5955b (diff) | |
Fix for issue #50: usage in plugins on Linux.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_lock.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_lock.cxx b/src/Fl_lock.cxx index 732ceb905..a98be46ec 100644 --- a/src/Fl_lock.cxx +++ b/src/Fl_lock.cxx @@ -317,7 +317,9 @@ static void unlock_function_rec() { # endif // PTHREAD_MUTEX_RECURSIVE void Fl_Posix_System_Driver::awake(void* msg) { - if (write(thread_filedes[1], &msg, sizeof(void*))==0) { /* ignore */ } + if (thread_filedes[1]) { + if (write(thread_filedes[1], &msg, sizeof(void*))==0) { /* ignore */ } + } } static void* thread_message_; |
