r16015 - gnucash/trunk/src/app-utils - Give the child process a real chance to die before we kill it.

David Hampton gnucash at love2code.net
Sat Apr 28 12:22:16 EDT 2007


On Sat, 2007-04-28 at 12:04 -0400, Andreas Köhler wrote:
 
> -  if (kill_it) {
> +  if (kill_it && !proc->dead) {
>      /* give it a chance to die */
> -    g_main_context_iteration (NULL, FALSE);
> +    while (g_main_context_iteration (NULL, FALSE) && !proc->dead)
> +      ;

Can this block forever waiting for the process to die?

David





More information about the gnucash-devel mailing list