diff options
author | Richard Yao <ryao@gentoo.org> | 2012-12-13 20:15:48 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-01-20 13:30:56 -0500 |
commit | ebf12c2f32cc22480e0102a4aadcd44487f55ad2 (patch) | |
tree | ca5dd1c954722fdc7698c0514808ec85b08aa965 /src/libudev/util.c | |
parent | eeb8d70a6b38f736febaa4c3b03e39b4c1193a6c (diff) |
Switch to dup2 from dup3
dup3() was being used in a situation where dup2() would suffice. uclibc
does not support dup3(), so we switch to dup2().
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/util.c')
-rw-r--r-- | src/libudev/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libudev/util.c b/src/libudev/util.c index 92fd22775b..43defd35b5 100644 --- a/src/libudev/util.c +++ b/src/libudev/util.c @@ -2975,9 +2975,9 @@ int make_stdio(int fd) { assert(fd >= 0); - r = dup3(fd, STDIN_FILENO, 0); - s = dup3(fd, STDOUT_FILENO, 0); - t = dup3(fd, STDERR_FILENO, 0); + r = dup2(fd, STDIN_FILENO); + s = dup2(fd, STDOUT_FILENO); + t = dup2(fd, STDERR_FILENO); if (fd >= 3) close_nointr_nofail(fd); |