FLTK logo

[master] 1881324 - FLUID: close communications pipe

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 1881324 - FLUID: close communications pipe "Matthias Melcher" Jan 27, 2023  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.