Re: Bug with dlopen() and fork()

2014-02-20 Thread Jaime Fabregas Fernandez
ot;stdafx.h" #include "testLib.h" int mylib_open (const char *foo) { return 1; } == I've tested several compiler and linker options with same result. Any ideas? > On Feb 19 14:38, Jaime Fabregas Fernandez wrote: >>

Fwd: Bug with dlopen() and fork()

2014-02-19 Thread Jaime Fabregas Fernandez
Library references loaded by a process using dlopen() and dlsym() are no more valid in child processes after running a fork(). Calls from child process will never return. I've searched for a similar problem in the mailing lists and found this unanswered thread from 2001: http://cygwin.com/ml/cygw