From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29595 invoked by alias); 28 Jun 2012 09:08:16 -0000 Received: (qmail 29587 invoked by uid 22791); 28 Jun 2012 09:08:15 -0000 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 Received: from mailgw1.z-ancy-11.fr.sopragroup.com (HELO mailgw1.z-ancy-11.fr.sopragroup.com) (83.206.112.232) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Jun 2012 09:08:00 +0000 Received: from mailgw1.z-ancy-11.fr.sopragroup.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id DE58CD1C0E6 for ; Thu, 28 Jun 2012 11:07:59 +0200 (CEST) From: Lenci Damien To: "cygwin@cygwin.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" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00525.txt.bz2 Hello, I am currently trying to port Nagios on Cygwin and I'm having a issue (amon= g 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\nag= ios\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\nag= ios\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 alre= ady 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