Обсуждение: pgsql: Report success when Windows kill() emulation signals an exiting

Поиск
Список
Период
Сортировка

pgsql: Report success when Windows kill() emulation signals an exiting

От
Noah Misch
Дата:
Report success when Windows kill() emulation signals an exiting process.

This is consistent with the POSIX verdict that kill() shall not report
ESRCH for a zombie process.  Back-patch to 9.0 (all supported versions).
Test code from commit d7cdf6ee36adeac9233678fb8f2a112e6678a770 depends
on it, and log messages about kill() reporting "Invalid argument" will
cease to appear for this not-unexpected condition.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b28761cb3176c22d7804504c753ef4892ae0356a

Modified Files
--------------
src/port/kill.c |   29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)