From d3311c81e5b29a7a5d0c6c2d2e74305b4c3b0d1d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 8 Feb 2012 22:56:42 -0800 Subject: [PATCH] REmoved al_list from exec.cpp --- exec.cpp | 57 ++++++++++++++++---------------------------------------- 1 file changed, 16 insertions(+), 41 deletions(-) diff --git a/exec.cpp b/exec.cpp index db81d76c4..95bb7e43e 100644 --- a/exec.cpp +++ b/exec.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #ifdef HAVE_SIGINFO_H #include @@ -94,7 +95,7 @@ many situations in order to make sure that stray fds aren't lying around. */ -static array_list_t *open_fds=0; +static std::vector open_fds; static int set_child_group( job_t *j, process_t *p, int print_errors ); @@ -112,8 +113,6 @@ static void exec_write_and_exit( int fd, char *buff, size_t count, int status ) void exec_close( int fd ) { - int i; - if( fd < 0 ) { debug( 0, L"Called close on invalid file descriptor " ); @@ -130,22 +129,8 @@ void exec_close( int fd ) } } - if( open_fds ) - { - for( i=0; i