diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-11 15:43:56 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-11 15:43:56 +0000 |
commit | 67b133020bb2a5ba90005ac6da55a0d5d1424799 (patch) | |
tree | 68eae41b81639206b3de7dc12b4a3c1335144048 /isys/otherinsmod.c | |
parent | e0e974477f07b1eb16c7553528b3f64d5d520ce5 (diff) | |
download | anaconda-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.c | 19 |
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); |