why isn't shared library fini function called when preloaded to dash? – Ubuntu
I am on the latest Ubuntu Linux. Here is a shared library with functions that are called when loading and unloading: shared.c: #include <fcntl.h> #include <sys/stat.h> void init() { open("init", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); } void fini() {…