Does pike not load modules completely when they are first accessed? I have some long running (24/7) pike scripts, and I just noticed that if I upgrade a C module they use, all those pikes will segfault.
Adam
That sounds more like an OS problem. Some OSes can't handle that you switch libraries on them during program execution. Modules written in C can be thought of as libraries in this respect.
In the last episode (Mar 23), Adam Montague said:
Does pike not load modules completely when they are first accessed? I have some long running (24/7) pike scripts, and I just noticed that if I upgrade a C module they use, all those pikes will segfault.
Ensuring that an update is implemented as "delete old file, create new file" instead of "update old file to new contents" usually fixes probelms like these. That way processes with a filehandle open on the old module still see it, but new ones will get the new code.
pike-devel@lists.lysator.liu.se