X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.6 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org From: Lenci Damien To: "cygwin AT cygwin DOT com" Subject: problem with fork() and temp dlls Date: Thu, 28 Jun 2012 09:08:00 +0000 Message-ID: <24473_1340874479_4FEC1EEF_24473_587_1_B03025C959FD1A4796D42DC68C9C0823046C64DC@wancyexmbx01.ancy.fr.sopra> x-cr-hashedpuzzle: Wuc= BmDU DQCJ DzxQ Ewej FXxf FeQk GF/5 GOQ+ Hg3S Igy9 Ixlq I9D1 JNDg JaLA JhUQ;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{F004C3A0-0506-4B12-BB26-112F97E7A405};ZABsAGUAbgBjAGkAQABzAG8AcAByAGEAZwByAG8AdQBwAC4AYwBvAG0A;Thu, 28 Jun 2012 09:09:25 GMT;cAByAG8AYgBsAGUAbQAgAHcAaQB0AGgAIABmAG8AcgBrACgAKQAgAGEAbgBkACAAdABlAG0AcAAgAGQAbABsAHMA x-cr-puzzleid: {F004C3A0-0506-4B12-BB26-112F97E7A405} Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q5S98Ngx018687 Hello, 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 Regards, Damien Lenci -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple