Actions
Bug #1633
closedimplement posix_spawn_pipe_np()
Start date:
2011-10-13
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
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.
Updated by Matthew Ahrens about 10 years ago
- Status changed from New to Resolved
pushed:
commit 462453d2d0c563559a4caf186db76954e563bd1a
Author: Matthew Ahrens <matt@delphix.com>
Date: Tue Oct 18 12:21:34 2011 -0700
1633 implement posix_spawn_pipe_np()
Reviewed by: Adam Leventhal <Adam.Leventhal@delphix.com>
Reviewed by: Eric Schrock <Eric.Schrock@delphix.com>
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Approved by: Eric Schrock <Eric.Schrock@delphix.com>
Actions