Skip to content

Commit 6b0de87

Browse files
committed
process: Add FD based run on Group
1 parent f01c0b2 commit 6b0de87

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/watt/process/group.volt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,23 @@ public:
164164
newCmd(done, pid);
165165
}
166166

167+
version (Posix) fn run(
168+
name: string, args: string[],
169+
inputFD: i32,
170+
outputFD: i32,
171+
errorFD: i32,
172+
env: Environment,
173+
done: DoneDg)
174+
{
175+
// Wait until we have a free slot.
176+
while (waiting >= maxWaiting) {
177+
waitOne();
178+
}
179+
180+
pid := spawnProcessPosix(name, args, inputFD, outputFD, errorFD, env);
181+
newCmd(done, new Pid(pid));
182+
}
183+
167184
fn waitOne()
168185
{
169186
version(Windows) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy