aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.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 /proc.cpp
parentff49792f44196f41156547efdf615bb2b52fcaaa (diff)
Revert "Revert shared_ptr<io_data_t> changes until kinks are ironed out"
Diffstat (limited to 'proc.cpp')
-rw-r--r--proc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.cpp b/proc.cpp
index 7ff41f4a..1b37f149 100644
--- a/proc.cpp
+++ b/proc.cpp
@@ -869,7 +869,7 @@ static int select_try(job_t *j)
for (size_t idx = 0; idx < j->io.size(); idx++)
{
- const io_data_t *d = j->io.at(idx);
+ const io_data_t *d = j->io.at(idx).get();
if (d->io_mode == IO_BUFFER)
{
int fd = d->param1.pipe_fd[0];
@@ -909,7 +909,7 @@ static void read_try(job_t *j)
*/
for (size_t idx = 0; idx < j->io.size(); idx++)
{
- io_data_t *d = j->io.at(idx);
+ io_data_t *d = j->io.at(idx).get();
if (d->io_mode == IO_BUFFER)
{
buff=d;