This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Question for MaxB: Any hope for fixing the current setup hang?
- From: Rajesh Balakrishnan <rajesh_balakrishnan at yahoo dot com>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 22 Dec 2004 02:56:01 -0800 (PST)
- Subject: Re: Question for MaxB: Any hope for fixing the current setup hang?
--- Reini Urban <rurban@x-ray.at> wrote:
> Christopher Faylor schrieb:
> > We REALLY need to get setup fixed. Is there any hope that you
> > are close to getting this fixed, Max?
>
> Why not get rid of the complicated tar => bz2 stack and just check for
> ".tar.bz2" and use a simplified approach then, which makes sure that the
> tar or bz2 part gets properly released. just combine those two into one
> interface which makes sure that it is released.
Since postinstall seemed to be a candidate for the hang,
I'm wondering if we could tap at the following code in script.cc
In run(), there is an infinite wait
WaitForSingleObject (pi.hProcess, INFINITE);
Should we use a wait period like 60s?
We could check the status & provide appropriate setup.log info?
Does post-texmf.sh take the longest to complete?
I haven't followed all the original threads on this issue,
so I could be way off target.
Regards,
rb
PS:
---- relevant piece of code script.cc::run() ----
BOOL createSucceeded = CreateProcess (0, cmdline, 0, 0, inheritHandles,
flags, 0, get_root_dir
().cstr_oneuse(),
&si, &pi);
if (createSucceeded)
WaitForSingleObject (pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com