Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
dde14581
Commit
dde14581
authored
Oct 27, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* process.c: (emacs_get_tty_pgrp, Fprocess_running_child_p, process_send_signal):
Don't assume pid_t fits in int.
parent
2121662f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/ChangeLog
src/ChangeLog
+2
-0
src/process.c
src/process.c
+4
-4
No files found.
src/ChangeLog
View file @
dde14581
...
...
@@ -574,6 +574,8 @@
(conv_lisp_to_sockaddr): Don't assume fixnums fit into int.
(Faccept_process_output): Use duration_to_sec_usec to do proper
overflow checking on durations.
(emacs_get_tty_pgrp, Fprocess_running_child_p, process_send_signal):
Don't assume pid_t fits in int.
* puresize.h (PURESIZE_RATIO): Shrink this to 8/6 on 32-bit hosts
configured --with-wide-int.
* scroll.c (calculate_scrolling, calculate_direct_scrolling)
...
...
src/process.c
View file @
dde14581
...
...
@@ -5630,10 +5630,10 @@ Output from processes can arrive in between bunches. */)
/* Return the foreground process group for the tty/pty that
the process P uses. */
static
in
t
static
pid_
t
emacs_get_tty_pgrp
(
struct
Lisp_Process
*
p
)
{
in
t gid = -1;
pid_
t
gid
=
-
1
;
#ifdef TIOCGPGRP
if
(
ioctl
(
p
->
infd
,
TIOCGPGRP
,
&
gid
)
==
-
1
&&
!
NILP
(
p
->
tty_name
))
...
...
@@ -5663,7 +5663,7 @@ return t unconditionally. */)
{
/* Initialize in case ioctl doesn't exist or gives an error,
in a way that will cause returning t. */
in
t gid;
pid_
t
gid
;
Lisp_Object
proc
;
struct
Lisp_Process
*
p
;
...
...
@@ -5704,7 +5704,7 @@ process_send_signal (Lisp_Object process, int signo, Lisp_Object current_group,
{
Lisp_Object
proc
;
register
struct
Lisp_Process
*
p
;
in
t gid;
pid_
t
gid
;
int
no_pgrp
=
0
;
proc
=
get_process
(
process
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment