Project

General

Profile

Bug #1633

implement posix_spawn_pipe_np()

Added by Matthew Ahrens about 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Low
Category:
lib - userland libraries
Start date:
2011-10-13
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

We should implement a new routine in libc to spawn a process, and connect its standard input or output to a file descriptor in the parent process. popen(3c) will be implemented in terms of the new function:

int posix_spawn_pipe_np(pid_t *pidp, int *fdp,
     const char *cmd, boolean_t write,
     posix_spawn_file_actions_t *fact, posix_spawnattr_t *attr);

Other consumers can get similar behavior to popen(3c), but with control over posix_spawn_file_actions_t and posix_spawnattr_t, and without the overhead of popen()'s list of FILE's.

History

#1

Updated by Matthew Ahrens over 7 years ago

  • Status changed from New to Resolved

pushed:

commit 462453d2d0c563559a4caf186db76954e563bd1a
Author: Matthew Ahrens <>
Date: Tue Oct 18 12:21:34 2011 -0700

1633 implement posix_spawn_pipe_np()
Reviewed by: Adam Leventhal &lt;&gt;
Reviewed by: Eric Schrock &lt;&gt;
Reviewed by: Dan McDonald &lt;&gt;
Reviewed by: Gordon Ross &lt;&gt;
Approved by: Eric Schrock &lt;&gt;

Also available in: Atom PDF