Write README
This commit is contained in:
parent
dd0ab96b16
commit
e2959d0f8c
14
README
Normal file
14
README
Normal file
@ -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.
|
Loading…
x
Reference in New Issue
Block a user