diff options
| author | Paul Eggert | 2015-03-06 15:41:09 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-03-06 15:41:45 -0800 |
| commit | e1acc3c7efb805d659f9edf345fc18a4647df538 (patch) | |
| tree | 2127bc1ad49856a87a39c7af2b31e33dd605b6b3 /lib-src/ChangeLog | |
| parent | 20c6b227ea69b9cd47f92d1a7e0935312e8ce83c (diff) | |
| download | emacs-e1acc3c7efb805d659f9edf345fc18a4647df538.tar.gz emacs-e1acc3c7efb805d659f9edf345fc18a4647df538.zip | |
Random minor fixes for movemail
* movemail.c: Include <stdbool.h> and <signal.h>.
(waitpid) [WINDOWSNT]: New macro.
(wait) [WINDOWSNT]: Remove.
(main, popmail, pop_retr, mbx_write, mbx_delimit_begin)
(mbx_delimit_end): Use bool for boolean.
(main): Simplify #if usage a bit.
(main): Don't assume EOF == -1. Prefer 'return' to 'exit'. Don't
possibly unlink lockname twice, as that's a race condition. Set
SIGCHLD to SIG_DFL to work around SysV misfeature. Check for fork
failure. Use waitpid, not wait, to avoid a race condition in the
unlikely case where we start up with a child.
(NOTOK, OK): Remove, in favor of plain boolean.
(popmail, pop_retr): Don't get confused about errno, e.g., ferror
need not set errno.
(popmail): Use fclose (mbf), not close (fileno (mbf)), to also
detect any stream-related errors (e.g., memory exhaustion).
(pop_retr): Report pop errors separately, since caller now does
errno reporting.
(mbx_write, mbx_delimit_begin, mbx_delimit_end): Check < 0, not ==
EOF, as it's a bit faster and (in theory) pickier.
Diffstat (limited to 'lib-src/ChangeLog')
| -rw-r--r-- | lib-src/ChangeLog | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 83855afa675..97868094bda 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,27 @@ | |||
| 1 | 2015-03-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Random minor fixes for movemail | ||
| 4 | * movemail.c: Include <stdbool.h> and <signal.h>. | ||
| 5 | (waitpid) [WINDOWSNT]: New macro. | ||
| 6 | (wait) [WINDOWSNT]: Remove. | ||
| 7 | (main, popmail, pop_retr, mbx_write, mbx_delimit_begin) | ||
| 8 | (mbx_delimit_end): Use bool for boolean. | ||
| 9 | (main): Simplify #if usage a bit. | ||
| 10 | (main): Don't assume EOF == -1. Prefer 'return' to 'exit'. Don't | ||
| 11 | possibly unlink lockname twice, as that's a race condition. Set | ||
| 12 | SIGCHLD to SIG_DFL to work around SysV misfeature. Check for fork | ||
| 13 | failure. Use waitpid, not wait, to avoid a race condition in the | ||
| 14 | unlikely case where we start up with a child. | ||
| 15 | (NOTOK, OK): Remove, in favor of plain boolean. | ||
| 16 | (popmail, pop_retr): Don't get confused about errno, e.g., ferror | ||
| 17 | need not set errno. | ||
| 18 | (popmail): Use fclose (mbf), not close (fileno (mbf)), to also | ||
| 19 | detect any stream-related errors (e.g., memory exhaustion). | ||
| 20 | (pop_retr): Report pop errors separately, since caller now does | ||
| 21 | errno reporting. | ||
| 22 | (mbx_write, mbx_delimit_begin, mbx_delimit_end): Check < 0, not == | ||
| 23 | EOF, as it's a bit faster and (in theory) pickier. | ||
| 24 | |||
| 1 | 2015-02-27 Mark Laws <mdl@60hz.org> | 25 | 2015-02-27 Mark Laws <mdl@60hz.org> |
| 2 | 26 | ||
| 3 | Support daemon mode on MS-Windows (bug#19688) | 27 | Support daemon mode on MS-Windows (bug#19688) |