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/README | |
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/README | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/quickexec/johns/README b/quickexec/johns/README deleted file mode 100644 index 1af84dc..0000000 --- a/quickexec/johns/README +++ b/dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | |||
2 | Compile qinit_srv.c to qinit_srv as usual | ||
3 | Compile your applications at shared libraries instead of as executables: | ||
4 | eg: gcc test.c -o test.so -shared | ||
5 | Make a symbolic link from qinit_srv to the name of the application: | ||
6 | eg: ln -s qinit_srv test | ||
7 | Now make sure 'test' (The symlink) and 'test.so' (the shared library version of the app) are together. | ||
8 | When you run ./test it will load test.so and run it just like you were running the application for real. | ||
9 | There will be a qinit_srv process created the first time you run a program this way. | ||
10 | |||
11 | How it works: | ||
12 | |||
13 | qinit_srv checks to see if there is already a server, if not it starts as a server which runs in the background as a deamon. | ||
14 | If it's a server it loads all the libraries listed in the library.lst file. | ||
15 | It then waits for signals to be sent to it which tell it to fork itself and load shared libraries and run them. | ||
16 | If it decides it's not the server, it sends a signal to the server to run the given command. | ||
17 | The server then executes a shared object file of whatever name the original process is invoked as (argv[0], the symlink trick) | ||
18 | The other process waits until the forked server finishes and signals the original process that it as finished and to return | ||
19 | |||
20 | |||
21 | |||