[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Introduce posix_spawn
From: |
Dale R. Worley |
Subject: |
Re: Introduce posix_spawn |
Date: |
Thu, 06 Sep 2018 22:54:12 -0400 |
Tavian Barnes <address@hidden> writes:
> One thing you'll probably run into is that posix_spawn() has no interface
> for running the spawned process in a new working directory. That makes
> implementing -execdir/-okdir somewhat awkward.
Couldn't you change the w.d. to the correct target, spawn, and then
change the w.d. back?
Alternatively, one could direct the spawned process to run a program
that would set the working directory to, say, the first argument, and
then use the remaining arguments to run/fork/spawn the target program.
Indeed, I would expect Threos to have a system program to do exactly
this, since other people must have seen the same problem.
Dale
- Introduce posix_spawn, Barath Aron, 2018/09/03
- RE: Introduce posix_spawn, Tavian Barnes, 2018/09/06
- Re: Introduce posix_spawn,
Dale R. Worley <=
- 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