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 Mar 14 14:19:15 -0800 
2006 -------
Ignore the patch, it's incomplete. This example shows the problem

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

all : all1 all2
        @+echo all

all1 :
        @+echo "Before sleep ..."
        @+sleep 4
        @+echo "After sleep ..."

all2 :
        @+sleep 1; rm stdout.txt;
        @+echo "X$(shell @+echo "(shellpre)";sleep 2; echo "(shellpost)")X" > 
stdout.txt
        @+echo "cat:";cat stdout.txt
- - - - shell_2.mk - - - -

$ ./dmake/dmake -r -P2 -f shell_2.mk
Before sleep ...
After sleep ...
cat:
XX
all

Oops, the $(shell ..) output is missing between the XX.

Reason: The
   Wait_for_completion = (pid == wid) ? waitchild : FALSE;
from the previous patch removes the "Wait_for_completion" status if a process
finishes we are not currently waiting for.

OK, but it might happen that one of the subsequent (recursive) calls to
Wait_for_child might end the process we are currently waiting for so that
we exit Wait_for_child() through the "wid  == -1" path and we are loosing
the "Wait_for_completion" state for the following execution of the $(shell ..)
command.

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