[Top][All Lists]

[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.


reply via email to

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