diff options
| author | Miles Bader | 1996-07-03 02:05:29 +0000 |
|---|---|---|
| committer | Miles Bader | 1996-07-03 02:05:29 +0000 |
| commit | cbd1aee2b14f0da381040210f81ec29db3246da5 (patch) | |
| tree | d9de1ecdb168ff8d6ddee19649d2e40ffd3790c3 /lib-src | |
| parent | c71437cfe9f4002f04a88c0f1085767a8923f257 (diff) | |
| download | emacs-cbd1aee2b14f0da381040210f81ec29db3246da5.tar.gz emacs-cbd1aee2b14f0da381040210f81ec29db3246da5.zip | |
(main) [HAVE_SOCKETS]: Call rewind before writing to infile.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsserver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib-src/emacsserver.c b/lib-src/emacsserver.c index 1306a2b2f7f..05449bf6105 100644 --- a/lib-src/emacsserver.c +++ b/lib-src/emacsserver.c | |||
| @@ -228,6 +228,7 @@ main () | |||
| 228 | 228 | ||
| 229 | /* Transfer text from Emacs to the client, up to a newline. */ | 229 | /* Transfer text from Emacs to the client, up to a newline. */ |
| 230 | infile = openfiles[infd]; | 230 | infile = openfiles[infd]; |
| 231 | rewind (infile); | ||
| 231 | while (1) | 232 | while (1) |
| 232 | { | 233 | { |
| 233 | if (fgets (string, BUFSIZ, stdin) == 0) | 234 | if (fgets (string, BUFSIZ, stdin) == 0) |