diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c index 8270a57c177..f04f4611ab7 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5630,10 +5630,10 @@ Output from processes can arrive in between bunches. */) | |||
| 5630 | 5630 | ||
| 5631 | /* Return the foreground process group for the tty/pty that | 5631 | /* Return the foreground process group for the tty/pty that |
| 5632 | the process P uses. */ | 5632 | the process P uses. */ |
| 5633 | static int | 5633 | static pid_t |
| 5634 | emacs_get_tty_pgrp (struct Lisp_Process *p) | 5634 | emacs_get_tty_pgrp (struct Lisp_Process *p) |
| 5635 | { | 5635 | { |
| 5636 | int gid = -1; | 5636 | pid_t gid = -1; |
| 5637 | 5637 | ||
| 5638 | #ifdef TIOCGPGRP | 5638 | #ifdef TIOCGPGRP |
| 5639 | if (ioctl (p->infd, TIOCGPGRP, &gid) == -1 && ! NILP (p->tty_name)) | 5639 | if (ioctl (p->infd, TIOCGPGRP, &gid) == -1 && ! NILP (p->tty_name)) |
| @@ -5663,7 +5663,7 @@ return t unconditionally. */) | |||
| 5663 | { | 5663 | { |
| 5664 | /* Initialize in case ioctl doesn't exist or gives an error, | 5664 | /* Initialize in case ioctl doesn't exist or gives an error, |
| 5665 | in a way that will cause returning t. */ | 5665 | in a way that will cause returning t. */ |
| 5666 | int gid; | 5666 | pid_t gid; |
| 5667 | Lisp_Object proc; | 5667 | Lisp_Object proc; |
| 5668 | struct Lisp_Process *p; | 5668 | struct Lisp_Process *p; |
| 5669 | 5669 | ||
| @@ -5704,7 +5704,7 @@ process_send_signal (Lisp_Object process, int signo, Lisp_Object current_group, | |||
| 5704 | { | 5704 | { |
| 5705 | Lisp_Object proc; | 5705 | Lisp_Object proc; |
| 5706 | register struct Lisp_Process *p; | 5706 | register struct Lisp_Process *p; |
| 5707 | int gid; | 5707 | pid_t gid; |
| 5708 | int no_pgrp = 0; | 5708 | int no_pgrp = 0; |
| 5709 | 5709 | ||
| 5710 | proc = get_process (process); | 5710 | proc = get_process (process); |