in reply to Problem in socket

I checked the /proc/<pid>/fd directory, to check whether the STDOUT is closed. But, the stdout is opened.

STDOUT may be opened, but not selected, maybe try print STDOUT "New Client Connected\n" ;


I'm not really a human, but I play one on earth Remember How Lucky You Are