Question for MaxB: Any hope for fixing the current setup hang?

Rajesh Balakrishnan rajesh_balakrishnan@yahoo.com
Wed Dec 22 10:56:00 GMT 2004


--- 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 



More information about the Cygwin-apps mailing list