From c@@rd|@g@bor @end|ng |rom gm@||@com  Fri Jan 10 21:43:15 2020
From: c@@rd|@g@bor @end|ng |rom gm@||@com (=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=)
Date: Fri, 10 Jan 2020 20:43:15 +0000
Subject: [Rd] SUGGESTION: Settings to disable forked processing in R,
 e.g. parallel::mclapply()
In-Reply-To: <6D7F010F-60B4-4C51-99B3-D8B51BE7572A@R-project.org>
References: <84d162f5-dd0d-64e6-e9bf-54b65a10faa6@gmail.com>
 <DCF5422D-5237-48C1-BE51-486CA3C1DD60@r-project.org>
 <CAFDcVCS0RwA0-64FTY6kiOk6=yxy8w4OweVbESa-3G6JHtV6Xg@mail.gmail.com>
 <6D7F010F-60B4-4C51-99B3-D8B51BE7572A@R-project.org>
Message-ID: <CABtg=Kkkernz+QCSopbCt7MFUL9fZ-5igs8GObDvJ6Wg1viB-Q@mail.gmail.com>

On Fri, Jan 10, 2020 at 7:23 PM Simon Urbanek
<simon.urbanek at r-project.org> wrote:
>
> Henrik,
>
> the example from the post works just fine in CRAN R for me - the post was about homebrew build so it's conceivably a bug in their libraries. That's exactly why I was proposing a more general solution where you can simply define a function in user-space that will issue a warning or stop on fork, it doesn't have to be part of core R, there are other packages that use fork() as well, so what I proposed is much safer than hacking the parallel package.

Btw. what other packages do fork() without an exec() call()?

Gbaor
[...]



[Rd] SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=