Files
heimdal/kdc
Jeffrey Altman 237cd892d9 kdc: unused pid element is (pid_t)-1 not zero
When the termination of a child process is observed by reap_kid() it
clears the pids[] element by assigning it the invalid pid value
(pid_t)-1. However, start_kdc() assumes that the unused pid[[] element
value is 0.  As a result, each pid[] element's associated child process
can only be restarted once since start_kdc() will not be able to locate
an unused element.

This change alters start_kdc() to initialize all elements of pids[] to
(pid_t)-1 and use that as the marker for unused elements.  By doing so
start_kdc() can properly record child process pids and indefinitely
restart child processes as necessary.

Change-Id: Ia93c9284ab21289994eca7fc9cf1278be7c00683
2017-07-27 22:03:51 -05:00
..
2011-07-24 13:07:07 -07:00
2016-02-26 01:04:31 -06:00
2016-01-20 15:03:30 -06:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2016-06-09 01:13:14 -04:00
2014-04-28 01:02:45 +02:00
2011-05-21 11:57:31 -07:00
2015-04-21 21:50:43 -04:00
2017-01-27 00:37:08 -05:00
2010-11-29 10:53:49 -05:00
2011-11-28 14:42:06 -06:00
2016-04-16 16:58:08 -05:00
2014-08-23 18:54:05 -07:00
2008-09-13 09:21:03 +00:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-07-24 20:24:35 -07:00
2016-06-09 01:13:15 -04:00