close socket hangs 4.2bds?
Brad Parker
brad at gcc-milo.ARPA
Mon Dec 9 09:54:20 AEST 1985
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
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list