summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorErik Andersen2000-03-12 23:49:18 +0000
committerErik Andersen2000-03-12 23:49:18 +0000
commit3522eb1ab3a4f1bcbf2c0f0eed387733b29c9e95 (patch)
tree5670f3711de435e2e159ff9ceebda1bebe33d38c /utility.c
parent269bba25149289201055c9448e8c64fc05dbf89d (diff)
downloadbusybox-3522eb1ab3a4f1bcbf2c0f0eed387733b29c9e95.zip
busybox-3522eb1ab3a4f1bcbf2c0f0eed387733b29c9e95.tar.gz
First pass at writing a shell for busybox.
Works fine, full job control support, etc. No syntax yet (if, then, while, etc). Handles pipes and & processes fine. TODO: add command editing, add syntax suport. -Erik
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utility.c b/utility.c
index cdf1c03..d0ffda2 100644
--- a/utility.c
+++ b/utility.c
@@ -96,8 +96,8 @@ extern void errorMsg(char *s, ...)
va_start(p, s);
fflush(stdout);
vfprintf(stderr, s, p);
- fprintf(stderr, "\n");
va_end(p);
+ fflush(stderr);
}
extern void fatalError(char *s, ...)
@@ -107,8 +107,8 @@ extern void fatalError(char *s, ...)
va_start(p, s);
fflush(stdout);
vfprintf(stderr, s, p);
- fprintf(stderr, "\n");
va_end(p);
+ fflush(stderr);
exit( FALSE);
}