This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setup.exe sucks


On Thu, 9 Dec 2004, Christopher Faylor wrote:

> On Thu, Dec 09, 2004 at 05:25:09PM -0700, Warren Young wrote:
> >Warren Young wrote:
> >>stop running services before starting the upgrade.
> >
> >Thinking more about it, couldn't you just call LoadLibrary() on the
> >full path to cygwin.dll, and if that succeeds, get the process list
> >from it and send out kill signals?
>
> Time for another sigh:  Sigh.
>
> You can't use LoadLibrary with cygwin and I really wasn't suggesting that
> we modify the DLL or introduce new functionality to accommodate setup.
>
> That said, however, you could iterate over all of the running processes
> and find out which was using cygwin1.dll.  You don't need cygwin for
> that.
>
> In fact, I was just playing around with some source code to do this
> yesterday.  It is attached, for the curious.
>
> cgf

I may be barking up the wrong tree, but I seem to recall complaints that
code like this may hang when certain types of firewall/anti-virus software
are used.  It also may require administrative privileges on the machine.
As time permits, I'll try to dig up evidence to either confirm or
contradict this.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]