octave-maintainers
[Top][All Lists]
Advanced

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

Re: fork() for microsoft windows (native but not Cygwin).


From: Mike Miller
Subject: Re: fork() for microsoft windows (native but not Cygwin).
Date: Sun, 1 May 2016 22:36:18 -0400
User-agent: Mutt/1.5.24 (2015-08-30)

On Mon, May 02, 2016 at 11:25:08 +0900, Tatsuro MATSUOKA wrote:
> Sorry for confusing writing.
> On octave-4.0.2 windows, from octave prompt
> 
> >> fork()
> ans = -1
> 
> fork returns -1 but not say unimplemented
> 
> I think that return "-1" is strange but show "unimplemented"
> by
> >> fork()
> 
> Am I wrong?

Try using the two-return-value form,

  [pid, msg] = fork ()

The msg should say something like "fork: not supported on this system".
It's not raised as an error, it's an optional output argument, I don't
know the reason why, but there it is.

-- 
mike



reply via email to

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