]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 1306a2b2f7f74a97671ea39f952107e36ace9b10..05449bf6105ff04c909ac1f981748cb01cbecc3b 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)