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

Attachment: dlls.cc
Description: Text document


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