Ubuntu 12.04 if-pre-up script has sometimes infinite loop

Bug #1514009 reported by Carlisle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ifenslave-2.6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

My release:

Description: Ubuntu 12.04.5 LTS
Release: 12.04

Version:

  Installed: 1.1.0-19ubuntu5

Description:

In the if-pre-up script provided by this package there is a while true loop:

[ ! -f /run/network/ifenslave.$BOND_MASTER ] && echo "Waiting for bond master $BOND_MASTER to be ready"
 while :; do
  if [ -f /run/network/ifenslave.$BOND_MASTER ]; then
   break
  fi
  sleep 0.1
 done

If the file in question is never created this loop will not exit, and neither will ifup until it is sent to the background and killed (control + c does not break). Maybe there is something wrong happening on my system that never should, but I also feel there shouldn't be the potential for an infinite loop while bringing up network interface. There should either be a timeout or logic to determine why the file is not there.

Thanks,

Carlisle

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.