To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=61856





------- Additional comments from [EMAIL PROTECTED] Tue Dec  5 15:18:27 -0800 
2006 -------
Well, it looks like we found a nice bug in cygwin.

I tried the following makefile first with SLEEP=sleep 10

--- makefile.mk ---
SHELL*:=/bin/sh
SHELLFLAGS*:=-ce

#SLEEP=wsleep.exe
SLEEP=sleep 10

all : a1 a2
        @+echo all

a1 :
        @+echo a1
        @$(SLEEP)

a2 :
        @+echo a2
        @$(SLEEP)
--- makefile.mk ---

$ ./dmake/dmake.exe -P4 -r

and CTRL-c stopps it immediately.

But then I thought it might have to do this test with a native Windows program
and used this code snipped:

--- wsleep.c ---
// Compile with MinGW
#include <stdio.h>
#include <windows.h>
 
int main(void)
{  printf("Waiting 3 sec ... ");
   fflush (stdout);
   Sleep(3000);
   printf("done\n");
   fflush (stdout);
   
   return 0;
}
--- wsleep.c ---

and
$ gcc -mno-cygwin wsleep.c -o wsleep.exe

to create a native W32 executable that takes some time (you have to put it into
your path) and tried that instead.

Big surprise! It couldn't be stopped while wsleep was running!?

But it aborted all remaining processes after wsleep finished. One CTRL-c
is enough to abort dmake but it gets handled after the current W32 process is
finished.

For your real-life example that can feel like "unstoppable" especially if the
current process is a big cl.exe one. Linking?

Anyway, it gets better. ;) I rigged dmake to see where it's "waiting" and found
that the spawnvp() is actually behaving more like an system() for native windows
processes. - In other words when spawn is used ( Default for cygwin builds ;) )
there is not much parallel execution :(

Did your dmake was build with --enable-spawn or not?

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to