diff src/process-unix.c @ 282:c42ec1d1cded r21-0b39

Import from CVS: tag r21-0b39
author cvs
date Mon, 13 Aug 2007 10:33:18 +0200
parents 90d73dddcdc4
children 558f606b08ae
line wrap: on
line diff
--- a/src/process-unix.c	Mon Aug 13 10:32:23 2007 +0200
+++ b/src/process-unix.c	Mon Aug 13 10:33:18 2007 +0200
@@ -776,7 +776,8 @@
 
   /* Record this as an active process, with its channels.
      As a result, child_setup will close Emacs's side of the pipes.  */
-  init_process_io_handles (p, (void*)inchannel, (void*)outchannel, pty_flag);
+  init_process_io_handles (p, (void*)inchannel, (void*)outchannel,
+			   pty_flag ? STREAM_PTY_FLUSHING : 0);
   /* Record the tty descriptor used in the subprocess.  */
   UNIX_DATA(p)->subtty = forkin;
 
@@ -1600,7 +1601,7 @@
     }
 
   /* This will be used for both sockets */
-  bzero(&sa, sizeof(sa));
+  memset (&sa, 0, sizeof(sa));
   sa.sin_family = AF_INET;
   sa.sin_port = theport;
   sa.sin_addr.s_addr = htonl (inet_addr ((char *) XSTRING_DATA (dest)));