Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
timemaster: Wait for udev to set up vclock devices.
timemaster created vclock /dev/ptp devices (by writing to /sys/class/ptp/ptp?/n_vclocks) and immediately started ptp4l instances using those vclocks. It's a race condition. On a SELinux-enabled system ptp4l was observed to exit with an error due to the device not having its SELinux context set by udev yet. Add a 100-millisecond sleep after creating the vclocks to give udev time to finish its job before starting ptp4l instances. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
- Loading branch information