15 lines
581 B
Plaintext
15 lines
581 B
Plaintext
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.
|