(main) [HAVE_SOCKETS]: Call rewind before writing to infile.
authorMiles Bader <miles@gnu.org>
Wed, 3 Jul 1996 02:05:29 +0000 (02:05 +0000)
committerMiles Bader <miles@gnu.org>
Wed, 3 Jul 1996 02:05:29 +0000 (02:05 +0000)
lib-src/emacsserver.c

index 1306a2b..05449bf 100644 (file)
@@ -228,6 +228,7 @@ main ()
 
          /* Transfer text from Emacs to the client, up to a newline.  */
          infile = openfiles[infd];
+         rewind (infile);
          while (1)
            {
              if (fgets (string, BUFSIZ, stdin) == 0)