diff options
| author | Stefan Monnier | 2008-06-13 16:35:17 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-06-13 16:35:17 +0000 |
| commit | a879ee6f98dfc8572450ff2f5a7c242e9467050d (patch) | |
| tree | 2c730bb0ec53ed60890119e3d19fb3c0ad405ffa /src/process.c | |
| parent | ec4e0abcd2ec5e1523fca615487878e89a9e366e (diff) | |
| download | emacs-a879ee6f98dfc8572450ff2f5a7c242e9467050d.tar.gz emacs-a879ee6f98dfc8572450ff2f5a7c242e9467050d.zip | |
(Fserial_process_configure, Fprocess_send_eof):
Use EQ to compare Lisp_Objects.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 1d49f8fc2b4..fdeb0aa9e91 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2794,7 +2794,7 @@ usage: (serial-process-configure &rest ARGS) */) | |||
| 2794 | proc = Fplist_get (contact, QCport); | 2794 | proc = Fplist_get (contact, QCport); |
| 2795 | proc = get_process (proc); | 2795 | proc = get_process (proc); |
| 2796 | p = XPROCESS (proc); | 2796 | p = XPROCESS (proc); |
| 2797 | if (p->type != Qserial) | 2797 | if (!EQ (p->type, Qserial)) |
| 2798 | error ("Not a serial process"); | 2798 | error ("Not a serial process"); |
| 2799 | 2799 | ||
| 2800 | if (NILP (Fplist_get (p->childp, QCspeed))) | 2800 | if (NILP (Fplist_get (p->childp, QCspeed))) |
| @@ -6678,7 +6678,7 @@ process has been transmitted to the serial port. */) | |||
| 6678 | #else | 6678 | #else |
| 6679 | if (XPROCESS (proc)->pty_flag) | 6679 | if (XPROCESS (proc)->pty_flag) |
| 6680 | send_process (proc, "\004", 1, Qnil); | 6680 | send_process (proc, "\004", 1, Qnil); |
| 6681 | else if (XPROCESS (proc)->type == Qserial) | 6681 | else if (EQ (XPROCESS (proc)->type, Qserial)) |
| 6682 | { | 6682 | { |
| 6683 | #ifdef HAVE_TERMIOS | 6683 | #ifdef HAVE_TERMIOS |
| 6684 | if (tcdrain (XPROCESS (proc)->outfd) != 0) | 6684 | if (tcdrain (XPROCESS (proc)->outfd) != 0) |
| @@ -6695,7 +6695,7 @@ process has been transmitted to the serial port. */) | |||
| 6695 | for communication with the subprocess, call shutdown to cause EOF. | 6695 | for communication with the subprocess, call shutdown to cause EOF. |
| 6696 | (In some old system, shutdown to socketpair doesn't work. | 6696 | (In some old system, shutdown to socketpair doesn't work. |
| 6697 | Then we just can't win.) */ | 6697 | Then we just can't win.) */ |
| 6698 | if (XPROCESS (proc)->type == Qnetwork | 6698 | if (EQ (XPROCESS (proc)->type, Qnetwork) |
| 6699 | || XPROCESS (proc)->outfd == XPROCESS (proc)->infd) | 6699 | || XPROCESS (proc)->outfd == XPROCESS (proc)->infd) |
| 6700 | shutdown (XPROCESS (proc)->outfd, 1); | 6700 | shutdown (XPROCESS (proc)->outfd, 1); |
| 6701 | /* In case of socketpair, outfd == infd, so don't close it. */ | 6701 | /* In case of socketpair, outfd == infd, so don't close it. */ |