This is the mail archive of the cygwin@sourceware.cygnus.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]

fork and socket


It seems that TCP/IP sockets can not be given to a child using
stdin/stdout. Is that true ?

Used program:
s=accept(...)
dup2(s,0)
read(0,...) OK!!!!!!!!!!!!
switch(fork())
{
	case 0:
		read(0,...) fail !!!!!!!!!!
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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