Fixed in stable and unstable. Will be in next releases.
The fix I chose was to use "local COUNT=0", instead of the "unset COUNT" at the end.
Thanks for finding this!
Cheers,
-Brian
Thus spake Ramon Bastiaans ([EMAIL PROTECTED]):
I think Samuele is right, and I was wrong ;)
I thought it was caused by COUNT not getting initialized, but it seems it is the other way around, it's unset prematurely.
After renaming "COUNT" to "COUNTME" in the sleep_loop function it seems
to work properly.
The "unset" statement from sh seems to unset global variables as well when run from inside a function.
For example, with this test script: -- copy here -- #!/bin/sh
TEST="bla"
myfunction() { TEST="whatever" unset TEST }
echo Before function call: TEST = $TEST myfunction echo After function call: TEST = $TEST -- end copy --
When run this gives the following:
[EMAIL PROTECTED]:~$ ./set.test.sh Before function call: TEST = bla After function call: TEST = [EMAIL PROTECTED]:~$
This is probably why COUNT gets messed up.
wait?-----Original Message----- From: [EMAIL PROTECTED] [mailto:sisuite-users- [EMAIL PROTECTED] On Behalf Of Brian Elliott Finley Sent: zaterdag 29 mei 2004 0:39 To: Tognini Samuele Cc: [EMAIL PROTECTED] Subject: Re: [Sisuite-users] _multi_ casting -> udp-sender does notthe
Thanks, Samuele,
I'll have a look there.
-Brian
Thus spake Tognini Samuele ([EMAIL PROTECTED]): >On Fri, 28 May 2004, Brian Elliott Finley wrote: > >> >> COUNT=0 seems to be already getting set, but I may be looking inthat>> wrong place. Can you send in a patch? > >I think the solution is not to set COUNT=0. For me the problem isd=>COUNT is unset in sleep_loop procedure at every cicle. >Last month i submit this bug, the details, and the solution to >systemimager Bugs Traker:
http://sourceforge.net/tracker/index.php?func=detail&aid=944108&group_i10g.259&atid=100259 >I hope this can help you. > >Regard, > >Samuele. > > >------------------------------------------------------- >This SF.Net email is sponsored by: Oracle 10g >Get certified on the hottest thing ever to hit the market... Oracle10g.>Take an Oracle 10g class now, and we'll give you the exam FREE. >http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >_______________________________________________ >Sisuite-users mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/sisuite-users >
-- ------------------------------------------------------ Brian Elliott Finley Argonne, MCS Division Mobile: 630.631.6621 Office: 630.252.4742 gpg --keyserver wwwkeys.pgp.net --recv-keys 10F8EE52 ------------------------------------------------------
------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... OracleTake an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Sisuite-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/sisuite-users
------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Sisuite-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/sisuite-users
--
------------------------------------------------------
Brian Elliott Finley Argonne, MCS Division Mobile: 630.631.6621 Office: 630.252.4742
gpg --keyserver wwwkeys.pgp.net --recv-keys 10F8EE52
------------------------------------------------------
------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Sisuite-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/sisuite-users
