|
|
commit 188132414539125353b1843746b48a349ad87838
Author: Matthias Melcher <github@matthiasm.com>
AuthorDate: Fri Jan 27 12:08:08 2023 +0100
Commit: Matthias Melcher <github@matthiasm.com>
CommitDate: Fri Jan 27 12:08:08 2023 +0100
FLUID: close communications pipe
fluid/ExternalCodeEditor_UNIX.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git fluid/ExternalCodeEditor_UNIX.cxx fluid/ExternalCodeEditor_UNIX.cxx
index 2860767..911fa3f 100644
--- fluid/ExternalCodeEditor_UNIX.cxx
+++ fluid/ExternalCodeEditor_UNIX.cxx
@@ -76,7 +76,10 @@ ExternalCodeEditor::~ExternalCodeEditor() {
(void*)this, (long)pid_);
close_editor(); // close editor, delete tmp file
set_filename(0); // free()s filename
- if (alert_pipe_[0] != -1) ::close(alert_pipe_[0]);
+ if (alert_pipe_[0] != -1) {
+ Fl::remove_fd(alert_pipe_[0]);
+ ::close(alert_pipe_[0]);
+ }
if (alert_pipe_[1] != -1) ::close(alert_pipe_[1]);
}
[ Direct Link to Message ] | |
|
| |