Commit f7b26c7d authored by Victor Ananjevsky's avatar Victor Ananjevsky

improve killink children for paned and notebook dialogs

parent 90ab8833
......@@ -131,6 +131,8 @@ notebook_close_childs (void)
{
if (tabs[i].pid != -1)
kill (tabs[i].pid, SIGUSR2);
else
break;
}
/* wait for stop subprocesses */
......
......@@ -105,7 +105,7 @@ paned_close_childs (void)
while (is_running)
{
is_running = FALSE;
for (i = 1; i <= 3; i++)
for (i = 1; i < 3; i++)
{
if (tabs[i].pid != -1 && kill (tabs[i].pid, 0) == 0)
{
......@@ -113,7 +113,8 @@ paned_close_childs (void)
break;
}
}
usleep (1000);
if (is_running)
usleep (1000);
}
/* cleanup shared memory */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment