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

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

[Octave-bug-tracker] [bug #45625] fork on command line


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #45625] fork on command line
Date: Sun, 26 Jul 2015 11:45:40 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0

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

Hi Mike - thanks for the tip. I added an exit but still get a hang. The script
below causes it for me.

>> ver
----------------------------------------------------------------------
GNU Octave Version: 4.0.0
GNU Octave License: GNU General Public License
Operating System: Linux 3.16.0-44-generic #59~14.04.1-Ubuntu SMP Tue Jul 7
15:07:27 UTC 2015 x86_64
----------------------------------------------------------------------
no packages installed.



%% - causes a hang --- %%
function  fork_test()

[pid, msg] = fork();

if pid
# wait child to complete
disp(["waiting for ", num2str(pid)]);
% do some useful work
%plot(1:10)
waitpid(pid)
else
% do some useful work
%A = randn(100);
%pause(10);
exit();
endif



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45625>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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