summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-12-18 08:48:26 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-12-18 08:48:26 +0000
commitfd95644b937fb3e6e1285b21c2fc1ab901199e87 (patch)
treed505389ad56d77f9b1abaabd4dca23e69d8951b3 /src/emacs.c
parent059f0a612aea0c4f485b6d316f6bf51375cf52d0 (diff)
downloademacs-fd95644b937fb3e6e1285b21c2fc1ab901199e87.tar.gz
* emacs.c (main): Print and error and exit when no data is read
from the pipe. * startup.el (command-line): Do not mention the server name in case the user has not mentioned it, print a more explicit message. * emacsclient.c (start_daemon_and_retry_set_socket): Improve error checking.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index bd733da303f..4ebf136063a 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1129,6 +1129,11 @@ main (int argc, char **argv)
fprintf (stderr, "Error reading status from child\n");
exit (1);
}
+ else if (retval == 0)
+ {
+ fprintf (stderr, "Error: server did not start correctly\n");
+ exit (1);
+ }
close (daemon_pipe[0]);
exit (0);