error check on socketpair,fixed typo