Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
281:090b52736db2 | 282:c42ec1d1cded |
---|---|
774 | 774 |
775 set_descriptor_non_blocking (inchannel); | 775 set_descriptor_non_blocking (inchannel); |
776 | 776 |
777 /* Record this as an active process, with its channels. | 777 /* Record this as an active process, with its channels. |
778 As a result, child_setup will close Emacs's side of the pipes. */ | 778 As a result, child_setup will close Emacs's side of the pipes. */ |
779 init_process_io_handles (p, (void*)inchannel, (void*)outchannel, pty_flag); | 779 init_process_io_handles (p, (void*)inchannel, (void*)outchannel, |
780 pty_flag ? STREAM_PTY_FLUSHING : 0); | |
780 /* Record the tty descriptor used in the subprocess. */ | 781 /* Record the tty descriptor used in the subprocess. */ |
781 UNIX_DATA(p)->subtty = forkin; | 782 UNIX_DATA(p)->subtty = forkin; |
782 | 783 |
783 { | 784 { |
784 #if !defined(__CYGWIN32__) | 785 #if !defined(__CYGWIN32__) |
1598 close (rs); | 1599 close (rs); |
1599 report_file_error ("error creating socket", list1(name)); | 1600 report_file_error ("error creating socket", list1(name)); |
1600 } | 1601 } |
1601 | 1602 |
1602 /* This will be used for both sockets */ | 1603 /* This will be used for both sockets */ |
1603 bzero(&sa, sizeof(sa)); | 1604 memset (&sa, 0, sizeof(sa)); |
1604 sa.sin_family = AF_INET; | 1605 sa.sin_family = AF_INET; |
1605 sa.sin_port = theport; | 1606 sa.sin_port = theport; |
1606 sa.sin_addr.s_addr = htonl (inet_addr ((char *) XSTRING_DATA (dest))); | 1607 sa.sin_addr.s_addr = htonl (inet_addr ((char *) XSTRING_DATA (dest))); |
1607 | 1608 |
1608 /* Socket configuration for reading ------------------------ */ | 1609 /* Socket configuration for reading ------------------------ */ |