On Mon, Jun 1, 2009 at 6:52 AM, Travis Collier <
travcollier@...> wrote:
> Parcellfun (from the General octave-forge package) is really
> promising, but is not quite behaving.
>
> Using octave 3.1.55 and the current download of parcellfun (no version
> number on that sadly) under Ubuntu 9.04...
>
> Something as simple as:
> a = parcellfun(4,@(x)horzcat(1,x),num2cell([1:10]),'UniformOutput',false);
> leaves a bunch of defunct octave processes laying around.
>
> These get cleared when octave exits, but that is the only way I find
> to remove them. Not a problem for small jobs, but I'm literally
> running into the wall of maximum number of processes.
>
> It has been a while since I did any parallel programming outside of
> mpi, so I'm not sure what the problem really is.
> IIRC though, doesn't the parent process have to catch SIG_CHILD? I
> don't see that happening in the script.
>
> BTW: If this problem gets sorted, I have a very minor bugfix and
> improvement to submit. They are pointless if the major bug doesn't
> get fixed first though.
>
> Travis Collier
> UCLA biology grad student
>
Hi Travis,
thanks for your suggestion. I have just checked in a patch that stores
the PIDs and calls waitpid after everything is done; this should
ensure that all children are reaped. Your example also discovered a
bug in the pipe handling, which I hopefully fixed. More in the next
mail.
regards
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship.
http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev