summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2005-04-23 01:41:51 +0000
committerMike Frysinger2005-04-23 01:41:51 +0000
commit5cfa5ef6f358bb979b76f8927899b920074f698d (patch)
tree2f3282e6bc0780a09b3e368a7e16263a8f78345b
parentde9f1f757af7e15881156b610431cd00c262f768 (diff)
downloadbusybox-5cfa5ef6f358bb979b76f8927899b920074f698d.zip
busybox-5cfa5ef6f358bb979b76f8927899b920074f698d.tar.gz
use bb_fflush_stdout_and_exit instead of exit
-rw-r--r--coreutils/printenv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/printenv.c b/coreutils/printenv.c
index 10f9dd2..753f7cb 100644
--- a/coreutils/printenv.c
+++ b/coreutils/printenv.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
int printenv_main(int argc, char **argv)
{
@@ -48,5 +49,5 @@ int printenv_main(int argc, char **argv)
}
}
- exit(EXIT_SUCCESS);
+ bb_fflush_stdout_and_exit();
}