#168 Don't send SIGKILL to children, give them a chance to die
Merged 3 years ago by rcritten. Opened 3 years ago by rcritten.
rcritten/certmonger nochildkill  into  master

file modified
-1
@@ -240,7 +240,6 @@ 

  

  	if (state != NULL) {

  		if (state->pid != -1) {

- 			kill(state->pid, SIGKILL);

  			do {

  				pid = waitpid(state->pid, &state->status, 0);

  				cm_log(4, "Waited for %ld, got %ld.\n",

This was causing issues in IPA which uses a lock file to
serialize some operations. The kill was leaving the lock in
place causing things to time out.

Tested with copr repo https://copr.fedorainfracloud.org/coprs/rcritten/certmonger/, and I could not reproduce the lock, LGTM.

rebased onto 00e9480

3 years ago

Pull-Request has been merged by rcritten

3 years ago
Metadata