[CMake] cmake on multicore interix'en
Markus Duft
markus.duft at salomon.at
Wed Feb 17 10:44:43 EST 2010
Markus Duft wrote:
> Hi all!
>
[snip]
>
> i thought of introducing some lame timeout when select()ing the signal
> pipe, then checking whether the process is still alive (wait()), and
> again selecting if it is. what do you think?
answering my own mail, i came up with a patch in the meantime, which
seems to fix the problem... however, i'm not sure whether i'm doing
something completely dumb, which may confuse cmake internally somehow.
could some of you guys who have the power(tm) have a look at the
attached patch (cmake-2.6.4-interix-parallel.patch) and tell me what you
think? again: this is just to get it working on multi-core machines.
single-core works already... (it required the (also attached)
cmake-2.6.0-interix.patch to get this far).
as you may have deduced from the patch name already, i'm using 2.6.4
(forgot to mention that - sorry).
BTW: if somebody feels like accepting the two patches i'd be more than
glad. do you need a bug report for that?
Cheers, Markus
>
> one more word to say: although interix is running on top of the windows
> kernel, i don't have access to the win32 api, so i can't reuse the win32
> code.
>
> the second problem i have is regarding a broken select(). i tried to
> work around it by setting KWSYSPE_USE_SELECT, which initially didn't
> work, because the code seems b0rked. it seems that there is a wrong
> timeout check in that code path. first kwsysProcessGetTimeoutLeft is
> called, like in the select() code path, but directly after that, the
> timeoutLength members are checkd seperately once more. with this check
> it seems that all sub-processes "time out" immediately. if i comment
> this check, it works fine (although the above random SIGCHLD propblem
> persists of course).
>
> Need more info? I'll be glad to provide it ;)
>
> Thanks in advance for taking the time to help!
>
> Cheers, Markus
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmake-2.6.0-interix.patch
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100217/6eb458ae/attachment-0001.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmake-2.6.4-interix-parallel.patch
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100217/6eb458ae/attachment-0001.txt>
More information about the CMake
mailing list