Mercurial > emacs
comparison src/process.c @ 69974:2ecef706d823
(Fprocess_send_eof): Abort if fail to open null device.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Wed, 12 Apr 2006 15:01:37 +0000 |
| parents | dc4e5cc51e66 |
| children | 9fb9e33ecf2d |
comparison
equal
deleted
inserted
replaced
| 69973:dc4e5cc51e66 | 69974:2ecef706d823 |
|---|---|
| 6232 emacs_close (XINT (XPROCESS (proc)->outfd)); | 6232 emacs_close (XINT (XPROCESS (proc)->outfd)); |
| 6233 #else /* not HAVE_SHUTDOWN */ | 6233 #else /* not HAVE_SHUTDOWN */ |
| 6234 emacs_close (XINT (XPROCESS (proc)->outfd)); | 6234 emacs_close (XINT (XPROCESS (proc)->outfd)); |
| 6235 #endif /* not HAVE_SHUTDOWN */ | 6235 #endif /* not HAVE_SHUTDOWN */ |
| 6236 new_outfd = emacs_open (NULL_DEVICE, O_WRONLY, 0); | 6236 new_outfd = emacs_open (NULL_DEVICE, O_WRONLY, 0); |
| 6237 if (new_outfd < 0) | |
| 6238 abort (); | |
| 6237 old_outfd = XINT (XPROCESS (proc)->outfd); | 6239 old_outfd = XINT (XPROCESS (proc)->outfd); |
| 6238 | 6240 |
| 6239 if (!proc_encode_coding_system[new_outfd]) | 6241 if (!proc_encode_coding_system[new_outfd]) |
| 6240 proc_encode_coding_system[new_outfd] | 6242 proc_encode_coding_system[new_outfd] |
| 6241 = (struct coding_system *) xmalloc (sizeof (struct coding_system)); | 6243 = (struct coding_system *) xmalloc (sizeof (struct coding_system)); |
