This is the program I was talking about earlier. It starts ptp4l and phc2sys in combination with chronyd or ntpd to synchronize the system clock to NTP and PTP sources. The functionality reminded me a bit of the postfix master daemon, hence time master :). I'm open to suggestions for a better name.
The first patch seems to be needed to avoid deadlocks in the ptp4l/phc2sys signal handler when terminating the program by CTRL-C and the second patch adds some utility functions used in the third patch. Miroslav Lichvar (3): Don't print messages in signal handler. Add string and pointer array utility functions. Add timemaster. makefile | 7 +- timemaster.8 | 335 +++++++++++++++++ timemaster.c | 1144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ util.c | 96 ++++- util.h | 57 +++ 5 files changed, 1636 insertions(+), 3 deletions(-) create mode 100644 timemaster.8 create mode 100644 timemaster.c -- 1.9.3 ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel