diff options
| author | Glenn Morris | 2011-12-06 00:17:35 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-12-06 00:17:35 -0800 |
| commit | 2bf2618007dd1f5038ae741a693c3924aee86e78 (patch) | |
| tree | b881a29881e233b3e5eebc8c8b09c201671b5dd4 /src/process.c | |
| parent | 2a185919b41986949f592ea51e17a3ac6c9afa2b (diff) | |
| download | emacs-2bf2618007dd1f5038ae741a693c3924aee86e78.tar.gz emacs-2bf2618007dd1f5038ae741a693c3924aee86e78.zip | |
* src/process.c (start_process_unwind): Treat any pid <= 0, except -2,
as an error, not just -1.
For example, make_process inits the pid to 0.
Fixes: debbugs:10217
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 05c4be27550..4b0f90b58af 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1521,8 +1521,9 @@ start_process_unwind (Lisp_Object proc) | |||
| 1521 | if (!PROCESSP (proc)) | 1521 | if (!PROCESSP (proc)) |
| 1522 | abort (); | 1522 | abort (); |
| 1523 | 1523 | ||
| 1524 | /* Was PROC started successfully? */ | 1524 | /* Was PROC started successfully? |
| 1525 | if (XPROCESS (proc)->pid == -1) | 1525 | -2 is used for a pty with no process, eg for gdb. */ |
| 1526 | if (XPROCESS (proc)->pid <= 0 && XPROCESS (proc)->pid != -2) | ||
| 1526 | remove_process (proc); | 1527 | remove_process (proc); |
| 1527 | 1528 | ||
| 1528 | return Qnil; | 1529 | return Qnil; |