Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!lavaca.uh.edu!jetson.uh.edu!elee6i5 From: elee6i5@jetson.uh.edu Newsgroups: comp.unix.questions Subject: How to handle interruped sys call "connect" ? Message-ID: <7380.272cbb05@jetson.uh.edu> Date: 30 Oct 90 05:28:04 GMT Organization: University of Houston Lines: 26 I am trying to set up a system wherein a client tries to send many files for a remote server's consumption. The way I go about is - open a new socket - connect - fork a child to send data The parent contiues this in a loop. The children after sending the data close their sockets. But the parent should also close the sockets on which data transfer has been completed in order to clear up the system table entry. I tried doing it this way. The parent traps SIG_CLD and the handler identifies the exiting child and closes the corresponding socket. Now the question is how to handle interruped system call "connect" When connect is retried (called again) if it returns with EINTR, it fails again with EISCONN (socket already connected or previous connect attempt not completed ; whatever it means) Can some explain this and suggest (email) how to handle interrupted call to connect ? Thanks in advance, .sundar elee6i5@jetson.uh.edu