diff options
| author | Paul Eggert | 2014-07-31 13:17:01 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-07-31 13:17:01 -0700 |
| commit | 5c6476b48a2d00bef6ada92fa210ac7cd1bc9a77 (patch) | |
| tree | 6f92d25b9731476c9aceab154149f8cf87def1e2 /src/ChangeLog | |
| parent | f3655f35ccd5a56c158a5db399c5f168b2e928d0 (diff) | |
| download | emacs-5c6476b48a2d00bef6ada92fa210ac7cd1bc9a77.tar.gz emacs-5c6476b48a2d00bef6ada92fa210ac7cd1bc9a77.zip | |
Simplify timerfd configuration and fix some minor glitches.
* configure.ac (HAVE_TIMERFD): Define only if TFD_CLOEXEC works,
since the code leaked file descriptors to children when !TFD_CLOEXEC.
(HAVE_TIMERFD_CLOEXEC): Remove; no longer used.
* m4/clock_time.m4 (gl_CLOCK_TIME): Don't check for clock_getres.
This reverts the previous change to this file, so it matches
gnulib again.
* src/atimer.c (TIMERFD_CREATE_FLAGS): Remove; we now assume TFD_CLOEXEC.
(alarm_timer, alarm_timer_ok, set_alarm, init_atimer):
Fall back on timer_create if timerfd_create fails at runtime.
(resolution) [HAVE_CLOCK_GETRES]: Remove; we now rely on the
kernel primitives to do resolution. All uses removed.
(timerfd) [!HAVE_TIMERFD]: Define to be -1, for convenience.
(turn_on_atimers): Clear timer_create-based timers too,
for consistency.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 985e3b33e06..f3ab7f9b990 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2014-07-31 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2014-07-31 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Simplify timerfd configuration and fix some minor glitches. | ||
| 4 | * atimer.c (TIMERFD_CREATE_FLAGS): Remove; we now assume TFD_CLOEXEC. | ||
| 5 | (alarm_timer, alarm_timer_ok, set_alarm, init_atimer): | ||
| 6 | Fall back on timer_create if timerfd_create fails at runtime. | ||
| 7 | (resolution) [HAVE_CLOCK_GETRES]: Remove; we now rely on the | ||
| 8 | kernel primitives to do resolution. All uses removed. | ||
| 9 | (timerfd) [!HAVE_TIMERFD]: Define to be -1, for convenience. | ||
| 10 | (turn_on_atimers): Clear timer_create-based timers too, | ||
| 11 | for consistency. | ||
| 12 | |||
| 3 | * frame.c (x_set_frame_parameters): Don't use uninitialized locals. | 13 | * frame.c (x_set_frame_parameters): Don't use uninitialized locals. |
| 4 | Without this change, the code can access the local variable 'width' | 14 | Without this change, the code can access the local variable 'width' |
| 5 | even when it has not been initialized, and likewise for 'height'; | 15 | even when it has not been initialized, and likewise for 'height'; |