summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-28 05:12:20 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-28 05:12:20 +0000
commit72f9a4277fe5ad7c6c6b9a9810d469cc7fcc3c71 (patch)
tree5dbf1995f603a95960c0ef94558954091ce7beef /shell/ash.c
parent9af363fe20002c7390966d4b71fcdee27b3686ba (diff)
downloadbusybox-w32-72f9a4277fe5ad7c6c6b9a9810d469cc7fcc3c71.tar.gz
busybox-w32-72f9a4277fe5ad7c6c6b9a9810d469cc7fcc3c71.tar.bz2
busybox-w32-72f9a4277fe5ad7c6c6b9a9810d469cc7fcc3c71.zip
Add in some (theoretical) uClinux support. Some init cleanups
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index ffafcfeb4..0c893998d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -6756,7 +6756,11 @@ forkshell(struct job *jp, const union node *n, int mode)
6756 TRACE(("forkshell(%%%d, 0x%lx, %d) called\n", jp - jobtab, (long)n, 6756 TRACE(("forkshell(%%%d, 0x%lx, %d) called\n", jp - jobtab, (long)n,
6757 mode)); 6757 mode));
6758 INTOFF; 6758 INTOFF;
6759#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
6759 pid = fork(); 6760 pid = fork();
6761#else
6762 pid = vfork();
6763#endif
6760 if (pid == -1) { 6764 if (pid == -1) {
6761 TRACE(("Fork failed, errno=%d\n", errno)); 6765 TRACE(("Fork failed, errno=%d\n", errno));
6762 INTON; 6766 INTON;
@@ -12627,7 +12631,7 @@ findvar(struct var **vpp, const char *name)
12627/* 12631/*
12628 * Copyright (c) 1999 Herbert Xu <herbert@debian.org> 12632 * Copyright (c) 1999 Herbert Xu <herbert@debian.org>
12629 * This file contains code for the times builtin. 12633 * This file contains code for the times builtin.
12630 * $Id: ash.c,v 1.31 2001/10/24 17:19:35 andersen Exp $ 12634 * $Id: ash.c,v 1.32 2001/10/28 05:12:18 andersen Exp $
12631 */ 12635 */
12632static int timescmd (int argc, char **argv) 12636static int timescmd (int argc, char **argv)
12633{ 12637{