From dc3c30fec0b2b02c7061ab5526b02ba4fc3d32a5 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 21 Feb 1996 20:53:01 +0000 Subject: [PATCH] (main, both definitions): Print a newline for normal termination. --- lib-src/emacsclient.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 254ba883f6f..b3dac792390 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -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); } -- 2.39.2