[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
signature.asc
Description: PGP signature
- Switch to std::atomic?, Rik, 2019/09/13
- Re: Switch to std::atomic?, John W. Eaton, 2019/09/25
- Re: Switch to std::atomic?, John W. Eaton, 2019/09/25
- Is fork() broken in octave 5.1 ?, Kay Nick, 2019/09/26
- Re: Is fork() broken in octave 5.1 ?,
Mike Miller <=
- Re: Is fork() broken in octave 5.1 ?, Kay Nick, 2019/09/26
- Re: Is fork() broken in octave 5.1 ?, Mike Miller, 2019/09/26
- Re: Is fork() broken in octave 5.1 ?, John W. Eaton, 2019/09/26
- Re: Is fork() broken in octave 5.1 ?, Dr. K. nick, 2019/09/27
- Re: Switch to std::atomic?, John W. Eaton, 2019/09/26
- Re: Switch to std::atomic?, Dmitri A. Sergatskov, 2019/09/26
- Re: Switch to std::atomic?, John W. Eaton, 2019/09/27
- Re: Switch to std::atomic?, Rik, 2019/09/26
- Re: Switch to std::atomic?, John W. Eaton, 2019/09/26
- Re: Switch to std::atomic?, Rik, 2019/09/26