author | mickeyl <mickeyl> | 2003-11-09 01:29:48 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-11-09 01:29:48 (UTC) |
commit | fe2686a823f0dc41828ed75b759f34f117453e49 (patch) (unidiff) | |
tree | bf3eb1ee22b12c84d36eb53d4f4f2dcb0eac64a4 /quickexec/johns/so_stub.c | |
parent | 28d03a7d43f449949991a91cab63580ef6220725 (diff) | |
download | opie-fe2686a823f0dc41828ed75b759f34f117453e49.zip opie-fe2686a823f0dc41828ed75b759f34f117453e49.tar.gz opie-fe2686a823f0dc41828ed75b759f34f117453e49.tar.bz2 |
get rid of some obsolete zombies.
-rw-r--r-- | quickexec/johns/so_stub.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/quickexec/johns/so_stub.c b/quickexec/johns/so_stub.c deleted file mode 100644 index fe71f9c..0000000 --- a/quickexec/johns/so_stub.c +++ b/dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <string.h> | ||
3 | #include <dlfcn.h> | ||
4 | |||
5 | |||
6 | int main( int argc, char *argv[] ) { | ||
7 | char module[1024]; | ||
8 | int (*loadedMain)( int argc, char *argv[] ); | ||
9 | char *error; | ||
10 | int retVal = 0; | ||
11 | void *handle; | ||
12 | strcpy( module, argv[0] ); | ||
13 | strcat( module, ".so" ); | ||
14 | if ( !(handle = dlopen( module, RTLD_LAZY ) ) ) | ||
15 | fputs( dlerror(), stderr ), exit( 1 ); | ||
16 | loadedMain = dlsym( handle, "main" ); | ||
17 | if ( ( error = dlerror() ) != NULL ) | ||
18 | fputs( error, stderr ), exit( 1 ); | ||
19 | retVal = (*loadedMain)( argc, argv ); | ||
20 | dlclose( handle ); | ||
21 | return retVal; | ||
22 | } | ||
23 | |||