Use of "select" in CLI and RPC server and check if CLI socket file
exists