From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: SIGKILL and block_sig_dispatch 22 Jun 1998 09:23:19 -0700 Message-ID: <01BD9E19.D35C1440.cygnus.cygwin32.developers@sos> To: "'Christopher Faylor'" Cc: "cygwin32-developers AT cygnus DOT com" Christopher Faylor wrote: > If you just get rid of the WSACleanup and only use the close_all_files() in > do_exit (), does it still hang? Yes it hang, because the main thread will switch into the new context only when blocking call will terminate. > > If so, and the close_all_files has to be executed in the context of the > signal thread, then, I think the patch below is better. It is a minor > change to avoid closing all of the files again. > It's not neccessary (the second close_all_files() does nothing), but let it be :-) -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia