listen on unix socket for local connection
Improve unix socket related code.