diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-01-27 12:08:08 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-01-27 12:08:08 +0100 |
| commit | 188132414539125353b1843746b48a349ad87838 (patch) | |
| tree | e44c41d9eb9585c4ab53b4df9b21ca2fcbde57e3 | |
| parent | 873d355ec271b22f0e48dac1c8eaca7deb075e66 (diff) | |
FLUID: close communications pipe
| -rw-r--r-- | fluid/ExternalCodeEditor_UNIX.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fluid/ExternalCodeEditor_UNIX.cxx b/fluid/ExternalCodeEditor_UNIX.cxx index 286076793..911fa3f7b 100644 --- a/fluid/ExternalCodeEditor_UNIX.cxx +++ b/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]); } |
