| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Injected-Via-Gmane: | http://gmane.org/ |
| To: | cygwin AT cygwin DOT com |
| From: | Andrew DeFaria <ADeFaria AT Salira DOT com> |
| Subject: | Re: to use dup() in cygwin |
| Date: | Fri, 21 Feb 2003 12:09:48 -0800 |
| Lines: | 14 |
| Message-ID: | <3E56878C.2010107@Salira.com> |
| References: | <OF94455B9D DOT B708D739-ONC1256CD4 DOT 00316F66 AT madrid DOT jazztel DOT com> <b35ou4$12p$1 AT main DOT gmane DOT org> |
| Mime-Version: | 1.0 |
| X-Complaints-To: | usenet AT main DOT gmane DOT org |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 |
| X-Accept-Language: | en-us, en, ru, zh |
Shankar Unni wrote: > Fernando DOT Frutos DOT Martin AT es DOT jazztel DOT 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.. You mean we have to step out of the 20th century and into the 21st century! :-) -- 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |