comparison src/emacs.c @ 100485:fd10c7ef5447

* 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.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 18 Dec 2008 08:48:26 +0000
parents 8e5380a0e38c
children e038c1a8307c
comparison
equal deleted inserted replaced
100484:023acf8058b5 100485:fd10c7ef5447
1125 while (retval == -1 && errno == EINTR); 1125 while (retval == -1 && errno == EINTR);
1126 1126
1127 if (retval < 0) 1127 if (retval < 0)
1128 { 1128 {
1129 fprintf (stderr, "Error reading status from child\n"); 1129 fprintf (stderr, "Error reading status from child\n");
1130 exit (1);
1131 }
1132 else if (retval == 0)
1133 {
1134 fprintf (stderr, "Error: server did not start correctly\n");
1130 exit (1); 1135 exit (1);
1131 } 1136 }
1132 1137
1133 close (daemon_pipe[0]); 1138 close (daemon_pipe[0]);
1134 exit (0); 1139 exit (0);