This is the mail archive of the
mailing list for the Cygwin project.
problem with fork() and temp dlls
- From: Lenci Damien <dlenci at sopragroup dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 28 Jun 2012 09:08:00 +0000
- Subject: problem with fork() and temp dlls
I am currently trying to port Nagios on Cygwin and I'm having a issue (among others ^^) when trying to use modules.
Here is how Nagios loads modules :
- Create a temporary file using mkstemp()
- Copy module into this temp file
- Load module from temp file with dlopen()
- Delete temp file (on startup, not when nagios process is terminated)
Here is the problem message :
0 [main] nagios 3624 child_info_fork::abort: unable to map XXXXXXXX\var\nagios\spool\checkresults\nebmodE56bUw, Win32 error 126
Sometimes return code(I think this is the return code) is 1 :
1 [main] nagios 2364 child_info_fork::abort: unable to map XXXXXXXX\var\nagios\spool\checkresults\nebmodE56bUw, Win32 error 126
The path is the path to the temp file which is deleted...
I'm wondering why fork try to reload the dll from the file while it is already loaded in memory.
Cygwin package version : 1.7.15-1
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple