[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Introduce posix_spawn
From: |
Bernhard Voelker |
Subject: |
Re: Introduce posix_spawn |
Date: |
Sat, 8 Sep 2018 09:24:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 09/08/18 00:15, Eric Blake wrote:
> Adding posix_spawn_file_actions_addchdir() is what avoids the need to
> lock in the parent, because now you do:
A thought WRT the naming: while ..._addopen() can be called for more file
descriptors, there's only one working directory for the spawned process.
Therefore I suggest to simply call it posix_spawn_file_actions_chdir(),
i.e., without the "add" in its name.
To "remove" this from the posix_spawn_file_actions again (before calling
posix_spawn, of course), one could also simply use
posix_spawn_file_actions_chdir(NULL);
WDYT?
Have a nice day,
Berny
- Re: Introduce posix_spawn, (continued)
- Re: Introduce posix_spawn, Eric Blake, 2018/09/07
- Re: Introduce posix_spawn, Eric Blake, 2018/09/07
- Re: Introduce posix_spawn, Barath Aron, 2018/09/07
- Re: Introduce posix_spawn, Eric Blake, 2018/09/07
- Re: Introduce posix_spawn, Bruno Haible, 2018/09/07
- Re: Introduce posix_spawn, Eric Blake, 2018/09/07
- Re: Introduce posix_spawn,
Bernhard Voelker <=
- Re: Introduce posix_spawn, Eric Blake, 2018/09/10
- Re: posix_spawn_file_actions_addchdir, Bruno Haible, 2018/09/07
- Re: posix_spawn_file_actions_addchdir, Eric Blake, 2018/09/07
- Re: posix_spawn_file_actions_addchdir, Bruno Haible, 2018/09/07
Re: Introduce posix_spawn, Tavian Barnes, 2018/09/10