octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58070] [octave forge] (symbolic) doesn't clos


From: anonymous
Subject: [Octave-bug-tracker] [bug #58070] [octave forge] (symbolic) doesn't close subprocess calls
Date: Sat, 28 Mar 2020 16:20:48 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

Follow-up Comment #5, bug #58070 (project octave):


[comment #4 comment #4:]
> This bug report seems accurate to me in current versions of Octave.
Basically, the default Python interface for the symbolic package uses popen2,
and it keeps track of the open subprocess with persistent variables.
> 
> If the user uses the command 'sympref reset', then the subprocess is cleaned
up properly using 'fclose' and 'waitpid'. So there is no bug in this case,
everything is cleaned up properly.
> 
> But if the user uses 'clear all', or possibly 'clear functions', then the
persistent state of the package is reset without properly closing the pipe and
reaping the child process. I don't know if there's a way to handle that case.
Patches would be welcome.


I use 'clear all' in the beginning of my script.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58070>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]