summaryrefslogtreecommitdiff
path: root/e2fsprogs/fsck.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-26 13:35:09 +0000
committerDenis Vlasenko2007-03-26 13:35:09 +0000
commit53091ecd20c294f0e0757a5f4e0d5c8c7b23b555 (patch)
treef4ae0be26d5debff091d2c976e77fa8050c6758c /e2fsprogs/fsck.c
parentec1a4b5a521b5adf295bc757c25231910f8c854b (diff)
downloadbusybox-53091ecd20c294f0e0757a5f4e0d5c8c7b23b555.zip
busybox-53091ecd20c294f0e0757a5f4e0d5c8c7b23b555.tar.gz
Attempt to get more applets compile for NOMMU.
TODO_config_nommu documents what I managed to compile so far (yay! msh works! cool). inetd, telnetd, httpd still do not compile. TODO Also make fork(), daemon() produce warnings on compile stage (in addition to erros on link stage).
Diffstat (limited to 'e2fsprogs/fsck.c')
-rw-r--r--e2fsprogs/fsck.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index c31ab3f..447b4d0 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -667,20 +667,9 @@ static void execute(const char *type, const char *device, const char *mntpt,
/* Fork and execute the correct program. */
pid = -1;
if (!noexecute) {
-/* TODO: NOMMU friendly way (vfork)? */
- pid = fork();
+ pid = spawn(argv);
if (pid < 0)
- bb_perror_msg_and_die("fork");
- if (pid == 0) {
- /* Child */
- if (!interactive) {
- /* NB: e2fsck will complain because of this!
- * Use "fsck -s" to avoid... */
- close(0);
- }
- BB_EXECVP(argv[0], argv);
- bb_perror_msg_and_die("%s", argv[0]);
- }
+ bb_perror_msg("%s", argv[0]);
}
for (i = num_args+1; i < argc; i++)