[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Re: Interest in a mtsh Windows port
From: |
Christof Petig |
Subject: |
[Monotone-devel] Re: Interest in a mtsh Windows port |
Date: |
Tue, 07 Feb 2006 19:19:40 +0100 |
User-agent: |
Mail/News 1.5 (X11/20060119) |
Christof Petig wrote:
> Hi Timothy,
>
> do you currently plan to port mtsh to windows? I might be able to get
> fund to do the port but wanted to ask you first.
>
> I already wrote a pipe+exec+fork (bidirectional asynchronous pipe)
> equivalent for the nvm.cvssync.win32 branch, so it's mainly a matter of
> adapting mtsh to it (and I have years of gtkmm on windows experience).
>
> Interested? Should we use the Netxx framework like monotone or should I
> put together something less intrusive? Perhaps even the glib people
> would be interested in solving this once for all (for monotone this was
> clearly way off) [get's much more work down this road]
I see that there is already a windows port in existance (nowhere
mentioned on the web site ;-) ) and the following patch was all I needed
to (cross-)compile it with mingw (on an ubuntu system)
I will see how far I get with the executable I got.
Christof
#
# old_revision [85c499eda62eb1732493ba5cfbde56a3b682bb0b]
#
# patch "monotone.cc"
# from [36b5e28b3fb1ffa71f09f4847b9aa29e17110c21]
# to [ac520ac8e3574637bb5032cef1ec18c73b7dff01]
#
============================================================
--- monotone.cc 36b5e28b3fb1ffa71f09f4847b9aa29e17110c21
+++ monotone.cc ac520ac8e3574637bb5032cef1ec18c73b7dff01
@@ -194,7 +194,7 @@
}
//std::cerr<<"kill()\n";
#ifdef WIN32
- TerminateProcess(pid, 0);
+ TerminateProcess(HANDLE(pid), 0);
#else
kill(pid, SIGKILL);
int r;
@@ -211,7 +211,7 @@
if (!pid)
return true;
#ifdef WIN32
- DWORD r = WaitForSingleObject(pid, 0);
+ DWORD r = WaitForSingleObject(HANDLE(pid), 0);
if (r == WAIT_TIMEOUT)
return false;
#else
signature.asc
Description: OpenPGP digital signature