Fix hanging of unix browser on long/bogus dns lookups. r=asharma,a=ramiro

This commit is contained in:
ramiro 1998-04-08 04:38:32 +00:00
parent 5cd4167bae
commit 4708fa6350

View File

@ -572,6 +572,13 @@ cancel_lookup(long id, int out_fd)
if (obj->pid)
{
pid_t pid2;
/*
* SIGKILL causes the browser to hang if the user clicks on the stop
* button while a long/bogus dns lookup is in progress. According
* to signal guru asharma, we should use SIGQUIT instead. -re
*/
/* kill(obj->pid, SIGKILL); */
kill(obj->pid, SIGQUIT);
pid2 = waitpid(obj->pid, 0, 0);
ASSERT(obj->pid == pid2);