mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 07:26:57 +08:00
FLUID: close communications pipe
This commit is contained in:
@@ -76,7 +76,10 @@ ExternalCodeEditor::~ExternalCodeEditor() {
|
|||||||
(void*)this, (long)pid_);
|
(void*)this, (long)pid_);
|
||||||
close_editor(); // close editor, delete tmp file
|
close_editor(); // close editor, delete tmp file
|
||||||
set_filename(0); // free()s filename
|
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]);
|
if (alert_pipe_[1] != -1) ::close(alert_pipe_[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user