check whether the server is running because I may run two emacs instances when reading source code.