diff --git a/ChangeLog b/ChangeLog index a9872f0479..8b28749fa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Apr 9 22:19:19 2015 Tanaka Akira + + * process.c (redirect_open): Removed. + Thu Apr 9 21:38:20 2015 Tanaka Akira * internal.h (rb_execarg_parent_end): Declared. diff --git a/process.c b/process.c index cfa141557b..2bb9577c51 100644 --- a/process.c +++ b/process.c @@ -2505,20 +2505,10 @@ redirect_close(int fd) return ret; } -static int -redirect_open(const char *pathname, int flags, mode_t perm) -{ - int ret; - ret = open(pathname, flags, perm); - ttyprintf("open(\"%s\", 0x%x, 0%o) => %d\n", pathname, flags, perm, ret); - return ret; -} - #else #define redirect_dup(oldfd) dup(oldfd) #define redirect_dup2(oldfd, newfd) dup2((oldfd), (newfd)) #define redirect_close(fd) close(fd) -#define redirect_open(pathname, flags, perm) open((pathname), (flags), (perm)) #endif static int