Hello All ,

I am using this below c snippet from red hat linux RHEL5 x86_64 

================================================================

if ( socketpair(AF_UNIX, SOCK_STREAM,0,fd) == -1 ){
perror("socketpair");
exit(1);
}

fd_read = fd[0];
fd_write = fd[1];

/* fcntl code comes here to set non blocking read */

/* set read mode to message -nondiscard mode */
if ( ioctl(fd_read, I_SRDOPT, RMSGN ) )
perror("ioctl");

===================================================================

I am getting bad address , please let me know is something wrong with ioctl.


Thanks



_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to