brad@gcc-milo.ARPA (Brad Parker) (12/09/85)
Question: (BSD4.2, vax 11/750) - DGRAM sockets of AF_UNIX flavor I have a server process which starts a daemon. The server sends requests to the daemon's socket via "sendto()". The daemon gets the requests via "recvfrom()" and responds with "sendto()". The whole process is synchronous. Both sockets are bound to unix domain names (which start with "/tmp"). If the server tries to close its socket while the daemon is still active (and blocking on a "recvfrom()"), the system hangs and won't respond to any terminal i/o or ethernet requests. (I assume that none of the other processes are getting any time) After a while (5 minutes?) the system comes back to life! Is this a bug in 4.2? I've since added code to kill the daemons before I close the server socket. (someone once told me the only parts of 4.2 networking that work are the parts that interested Bill Joy... ;-) Any help? -- J Bradford Parker seismo!harvard!gcc-milo!brad