octave-maintainers
[Top][All Lists]
Advanced

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

Re: Is fork() broken in octave 5.1 ?


From: Mike Miller
Subject: Re: Is fork() broken in octave 5.1 ?
Date: Thu, 26 Sep 2019 10:04:28 -0700
User-agent: Mutt/1.10.1 (2018-07-13)

On Thu, Sep 26, 2019 at 17:37:13 +0200, Kay Nick wrote:
> ...or am I getting something wrong here?
> 
> Dear folks,
> 
> this simple script (forktest.m)
> 
> A=23;
> [pid, msg]=fork();
> if (pid > 0)
>   pid
>   msg
> endif
> 
> gives me the error
> 
> >> forktest
> 
> error: fork: cannot be called from command line
> error: called from
>     forktest at line 2 column 11
> 
> >>
> 
> Tested it on Arch Linux as well as Manjaro (64 bit) with all recent
> updates installed. Any idea?

The error message says "command line", but includes scripts as well.
This error was added intentionally, so it looks to me like the function
is working correctly. Have you tried turning forktest.m into a function
file?

-- 
mike

Attachment: signature.asc
Description: PGP signature


reply via email to

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