(main, both definitions): Print a newline for normal termination.
authorKarl Heuer <kwzh@gnu.org>
Wed, 21 Feb 1996 20:53:01 +0000 (20:53 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 21 Feb 1996 20:53:01 +0000 (20:53 +0000)
lib-src/emacsclient.c

index 254ba88..b3dac79 100644 (file)
@@ -172,6 +172,7 @@ main (argc, argv)
 
   rewind (out); /* re-read the output */
   str = fgets (string, BUFSIZ, out); 
+  printf ("\n");
 
   /* Now, wait for an answer and print any messages.  */
   
@@ -325,7 +326,9 @@ main (argc, argv)
   msgrcv (s, msgp, BUFSIZ, getpid (), 0);      /* wait for anything back */
   strcpy (buf, msgp->mtext);
 
-  printf ("\n%s\n", buf);
+  printf ("\n");
+  if (*buf)
+    printf ("%s\n", buf);
   exit (0);
 }