From e2959d0f8c0da7e112cf67b33bcad621fdc3a976 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sun, 29 Dec 2024 17:29:19 +0000 Subject: [PATCH] Write README --- README | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README 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.