Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: to use dup() in cygwin MIME-Version: 1.0 Message-ID: From: Fernando.Frutos.Martin@es.jazztel.com Date: Mon, 24 Feb 2003 10:58:17 +0100 Content-Type: text/plain; charset="us-ascii" Fernando.Frutos.Martin@es.jazztel.com wrote: > /*close the display exit and send it to the socket*/ > close(1); > iError=dup(iDescSock); Shouldn't you be using dup2() for this? It's time to step into the 1990s here, methinks.. -- Shankar. I use dup2 and it happens the same. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/