X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <49D0B0CD.6050009@pocock.com.au> Date: Mon, 30 Mar 2009 12:45:17 +0100 From: Daniel Pocock User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: execve issues, and execve with cygrunsrv Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 Hi, I'm using the execve call in a UNIX program (which works successfully), and now I am testing it with Cygwin. The program is using execve as a way to restart itself after receiving SIGHUP. The child process started by execve seems to be unable to work properly, I observe various errors: - DNS lookups fail - binding to UDP sockets fails Furthermore, I would like the process to become a service started by cygrunsrv. Is it safe to use execve in a process started by cygrunsrv? Are there any issues to be aware of, or suggestions on how to proceed? Regards, Daniel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/