diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 31613f30769..a3e10411874 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2568,6 +2568,13 @@ nil, indicating the current buffer's process.") | |||
| 2568 | Lisp_Object proc; | 2568 | Lisp_Object proc; |
| 2569 | 2569 | ||
| 2570 | proc = get_process (process); | 2570 | proc = get_process (process); |
| 2571 | |||
| 2572 | /* Make sure the process is really alive. */ | ||
| 2573 | if (! NILP (XPROCESS (proc)->raw_status_low)) | ||
| 2574 | update_status (XPROCESS (proc)); | ||
| 2575 | if (! EQ (XPROCESS (proc)->status, Qrun)) | ||
| 2576 | error ("Process %s not running", procname); | ||
| 2577 | |||
| 2571 | /* Sending a zero-length record is supposed to mean eof | 2578 | /* Sending a zero-length record is supposed to mean eof |
| 2572 | when TIOCREMOTE is turned on. */ | 2579 | when TIOCREMOTE is turned on. */ |
| 2573 | #ifdef DID_REMOTE | 2580 | #ifdef DID_REMOTE |