This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: to use dup() in cygwin


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]