diff options
| author | Richard M. Stallman | 1993-07-24 05:47:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-24 05:47:16 +0000 |
| commit | eb4686e4a3012a83771b50f4561d7d4966782f89 (patch) | |
| tree | a6ff946e5231957751fc6e44ddf6e69689002a7f /src/process.c | |
| parent | e8608d6a082a7a3b2764ea7c60b9f7a65a9c1cc8 (diff) | |
| download | emacs-eb4686e4a3012a83771b50f4561d7d4966782f89.tar.gz emacs-eb4686e4a3012a83771b50f4561d7d4966782f89.zip | |
(Fprocess_status): Use Fget_process, to avoid error
if unknown process name.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 2d81b9adc63..3370a3298cf 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -631,14 +631,12 @@ closed -- for a network stream connection that is closed.\n\ | |||
| 631 | nil -- if arg is a process name and no such process exists.\n\ | 631 | nil -- if arg is a process name and no such process exists.\n\ |
| 632 | PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ | 632 | PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ |
| 633 | nil, indicating the current buffer's process.") | 633 | nil, indicating the current buffer's process.") |
| 634 | /* command -- for a command channel opened to Emacs by another process.\n\ | ||
| 635 | external -- for an i/o channel opened to Emacs by another process.\n\ */ | ||
| 636 | (proc) | 634 | (proc) |
| 637 | register Lisp_Object proc; | 635 | register Lisp_Object proc; |
| 638 | { | 636 | { |
| 639 | register struct Lisp_Process *p; | 637 | register struct Lisp_Process *p; |
| 640 | register Lisp_Object status; | 638 | register Lisp_Object status; |
| 641 | proc = get_process (proc); | 639 | proc = Fget_process (proc); |
| 642 | if (NILP (proc)) | 640 | if (NILP (proc)) |
| 643 | return proc; | 641 | return proc; |
| 644 | p = XPROCESS (proc); | 642 | p = XPROCESS (proc); |