mirror of
https://github.com/fltk/fltk.git
synced 2026-05-26 01:46:58 +08:00
FLUID: close communications pipe
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user