summaryrefslogtreecommitdiffstats
path: root/isys/otherinsmod.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-11 15:43:56 +0000
committerMatt Wilson <msw@redhat.com>1999-09-11 15:43:56 +0000
commit67b133020bb2a5ba90005ac6da55a0d5d1424799 (patch)
tree68eae41b81639206b3de7dc12b4a3c1335144048 /isys/otherinsmod.c
parente0e974477f07b1eb16c7553528b3f64d5d520ce5 (diff)
downloadanaconda-67b133020bb2a5ba90005ac6da55a0d5d1424799.tar.gz
anaconda-67b133020bb2a5ba90005ac6da55a0d5d1424799.tar.xz
anaconda-67b133020bb2a5ba90005ac6da55a0d5d1424799.zip
patch from jj, misc fixes
Diffstat (limited to 'isys/otherinsmod.c')
-rw-r--r--isys/otherinsmod.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/isys/otherinsmod.c b/isys/otherinsmod.c
index 190a36cf5..d83dc13f9 100644
--- a/isys/otherinsmod.c
+++ b/isys/otherinsmod.c
@@ -11,6 +11,7 @@
/* hack */
int insmod_main(int argc, char ** argv);
+int insmod64_main(int argc, char ** argv);
int rmmod_main(int argc, char ** argv);
int ourInsmodCommand(int argc, char ** argv) {
@@ -57,21 +58,11 @@ int ourInsmodCommand(int argc, char ** argv) {
argv[1] = file;
#ifdef __sparc__
- if (sparc64) {
- int pid, status;
-
- if (!(pid = fork())) {
- execv("/bin/insmod64", argv);
- exit(-1);
- }
- waitpid(pid, &status, 0);
- if (WIFEXITED(status))
- rc = WEXITSTATUS(status);
- else
- rc = -1;
- } else
+ if (sparc64)
+ rc = insmod64_main(argc, argv);
+ else
#endif
- rc = insmod_main(argc, argv);
+ rc = insmod_main(argc, argv);
if (rmObj) unlink(file);