aboutsummaryrefslogtreecommitdiff
path: root/console-tools/openvt.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-09-08 03:27:06 +0000
committerRob Landley <rob@landley.net>2005-09-08 03:27:06 +0000
commit9f0e00fc61858a0e3cc6711b78e95c57b484ef7c (patch)
treec7b8e35296501484d82d6ac84ae1685df3339ccb /console-tools/openvt.c
parent230b411de87219f8a59e5d4061d7908cd44ed4d7 (diff)
downloadbusybox-w32-9f0e00fc61858a0e3cc6711b78e95c57b484ef7c.tar.gz
busybox-w32-9f0e00fc61858a0e3cc6711b78e95c57b484ef7c.tar.bz2
busybox-w32-9f0e00fc61858a0e3cc6711b78e95c57b484ef7c.zip
Tito sent more size tweaks.
Diffstat (limited to 'console-tools/openvt.c')
-rw-r--r--console-tools/openvt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/console-tools/openvt.c b/console-tools/openvt.c
index 5f244579c..d9f49bbea 100644
--- a/console-tools/openvt.c
+++ b/console-tools/openvt.c
@@ -64,10 +64,8 @@ int openvt_main(int argc, char **argv)
64 fd = bb_xopen(vtname, O_RDWR); 64 fd = bb_xopen(vtname, O_RDWR);
65 65
66 /* Reassign stdout and sterr */ 66 /* Reassign stdout and sterr */
67 close(1); 67 dup2(fd, STDOUT_FILENO);
68 close(2); 68 dup2(fd, STDERR_FILENO);
69 dup(fd);
70 dup(fd);
71 69
72 execvp(argv[0], argv); 70 execvp(argv[0], argv);
73 _exit(1); 71 _exit(1);