The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-19-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,958
I could see that its not corrected for a snippet in the client code as well.

Use porter's point to address everywhere when expected return value is not returned from any of send / read


Code:
rc = write(s, buf,sizeof(buf)); 
          if(rc<0)
      {
	perror("write failed");
      }