to use dup() in cygwin
Shankar Unni
shankar@cotagesoft.com
Fri Feb 21 18:31:00 GMT 2003
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.
--
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/
More information about the Cygwin
mailing list