FreeBSD Bugzilla – Attachment 129190 Details for
Bug 173153
[rc.d] $netwait_ip should be more parallel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 771 bytes, created by
fullermd
on 2012-10-28 14:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
fullermd
Created:
2012-10-28 14:40:01 UTC
Size:
771 bytes
patch
obsolete
>Index: netwait >=================================================================== >--- netwait (revision 242186) >+++ netwait (working copy) >@@ -67,11 +67,10 @@ > # Handle SIGINT (Ctrl-C); force abort of while() loop > trap break SIGINT > >- for ip in ${netwait_ip}; do >- echo -n "Waiting for ${ip} to respond to ICMP" >- >- count=1 >- while [ ${count} -le ${netwait_timeout} ]; do >+ count=${netwait_timeout} >+ echo -n "Waiting for ${netwait_ip} to respond to ICMP" >+ while [ ${count} -ge 0 ]; do >+ for ip in ${netwait_ip}; do > /sbin/ping -t 1 -c 1 -o ${ip} >/dev/null 2>&1 > rc=$? > >@@ -82,9 +81,8 @@ > echo '.' > return > fi >- count=$((count+1)) >+ count=$((count-1)) > done >- echo ': No response from host.' > done > > # Restore default SIGINT handler
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 173153
: 129190