[Netkit.users] Minor vstart script bug when using --print with --ethN
Kris Olander
kriso a packetdesign.com
Gio 28 Ott 2004 22:04:43 CEST
The code in the "ensureHub" routine will hang if you specify the
--print and --ethN command arguments together.
The socket doesn't get created when you are only interested in printing
the command and the "busy/wait" code will wait forever since the socket
wasn't actually created.
I fixed this in the 1.4.2 vstart by simply moving all the busy/wait
code to reside under the conditional check for only printing out the
command.
----------------------------------
if not justPrint: system(command)
#busy wait until the file for the socket is created
exists=0
while not exists:
try:
stat(sock)
exists=1
except:
pass
----to this---
if not justPrint:
system(command)
#busy wait until the file for the socket is created
exists=0
while not exists:
try:
stat(sock)
exists=1
except:
pass
-----------------------------
Kris Olander
----------------------------------------------
|-----------------------------------
kriso a packetdesign.com | wrk: 650-739-1881
Senior Technical Services Engineer | fax: 650-739-0090
Packet Design, Inc. |
http://www.packetdesign.com
Maggiori informazioni sulla lista
Netkit.users