[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37591] system with async option results in zo
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #37591] system with async option results in zombie processes |
Date: |
Fri, 22 Sep 2017 11:34:44 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #11, bug #37591 (project octave):
Re Anonymous - yes, that's what I was proposing, and it sounds like it's a bad
idea because users may rely on the process ID of the async'd process for
information. So I think we should leave things the way they are.
Re Dan - background periodic reaping is not complicated at all, the code is
already in Octave to do exactly this. I think adding a user callback function
support would make this much more complicated.
I agree with comment #9, the existing behavior should be kept in place as it
is now, and maybe a new option or a new function for adding process IDs to be
harvested could be added.
This could be a new option on the system function, something like
system ("xterm", [], "async", "cleanup");
Or it could be a completely new function to let the caller tell Octave that it
doesn't care about the process ID and wants it to be harvested whenever
possible, something like
pid = system ("xterm", [], "async");
waitpid_later (pid);
This function would not block, it would simply add the process ID to Octave's
child_list to be cleaned up whenever it exits eventually.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37591>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, Dan Sebald, 2017/09/22
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, Mike Miller, 2017/09/22
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, Dan Sebald, 2017/09/22
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, Dan Sebald, 2017/09/22
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, Mike Miller, 2017/09/22
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, anonymous, 2017/09/22
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, Dan Sebald, 2017/09/22
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes,
Mike Miller <=
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, Rik, 2017/09/22
- [Octave-bug-tracker] [bug #37591] system with async option results in zombie processes, Dan Sebald, 2017/09/22