diff --git a/README b/README new file mode 100644 index 0000000..654fd58 --- /dev/null +++ b/README @@ -0,0 +1,14 @@ + HOT RELOADING DEMO + +This is a simple demo of hot code reloading in C on Linux. Internally, +it uses the POSIX dlopen() family of functions for dynamic loading and +the Linux inotify API for watching the filesystem. + +To build, run the build.sh script. When running the demo, you must +specify the build directory in LD_LIBRARY_PATH: + + LD_LIBRARY_PATH=build build/demo + +The demo will repeatedly print out the message returned by getmsg(), +defined in mod.c -- if getmsg() is modified to return a different +message and recompiled, the change will be loaded in running program.