race condition in if-up.d script
Bug #1037738 reported by
LaMont Jones
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
ifup -a with lots of new interfaces exposes a race condition in the init script:
lamont
-------
ssh start/running, process 9328
Set name-type for VLAN subsystem. Should be visible in /proc/net/
cat: /var/run/sshd.pid: No such file or directory
ERROR: List of process IDs must follow -p.
To post a comment you must log in.
Ah, I think you meant if-up.d script not the "init" script.
Agreed, the l ast 3 lines are:
# We'd like to use 'reload' here, but it has some problems; see #502444.
stop ssh || true
start ssh || true
502444 is a debian bug # btw.
I think we need to serialize access to this section of the script with an flock o only one thing does this at a time.