aboutsummaryrefslogtreecommitdiffhomepage
path: root/postfork.cpp
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-07 23:04:55 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-11 14:18:10 -0800
commitb66233de786ec1b136c84fb2ec0afcce0e107e00 (patch)
tree3efdb0181d69d6d429e0ffca737b527e19cc5cbd /postfork.cpp
parentff49792f44196f41156547efdf615bb2b52fcaaa (diff)
Revert "Revert shared_ptr<io_data_t> changes until kinks are ironed out"
Diffstat (limited to 'postfork.cpp')
-rw-r--r--postfork.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/postfork.cpp b/postfork.cpp
index a7d3b5ed..5afb72bb 100644
--- a/postfork.cpp
+++ b/postfork.cpp
@@ -117,7 +117,7 @@ static void free_redirected_fds_from_pipes(io_chain_t &io_chain)
for (size_t j = 0; j < max; j++)
{
/* We're only interested in pipes */
- io_data_t *possible_conflict = io_chain.at(j);
+ io_data_t *possible_conflict = io_chain.at(j).get();
if (possible_conflict->io_mode != IO_PIPE && possible_conflict->io_mode != IO_BUFFER)
continue;
@@ -166,7 +166,7 @@ static int handle_child_io(io_chain_t &io_chain)
free_redirected_fds_from_pipes(io_chain);
for (size_t idx = 0; idx < io_chain.size(); idx++)
{
- io_data_t *io = io_chain.at(idx);
+ io_data_t *io = io_chain.at(idx).get();
int tmp;
if (io->io_mode == IO_FD && io->fd == io->param1.old_fd)
@@ -441,7 +441,7 @@ bool fork_actions_make_spawn_properties(posix_spawnattr_t *attr, posix_spawn_fil
for (size_t idx = 0; idx < j->io.size(); idx++)
{
- const io_data_t *io = j->io.at(idx);
+ shared_ptr<const io_data_t> io = j->io.at(idx);
if (io->io_mode == IO_FD && io->fd == io->param1.old_fd)
{