Used test/random-test-client.c from the libmodbus source as a guide for allocating
memory to store register data. Fixed the signal handler. Removed call to sleep()
and added gettimeofday() from time.h for non-blocking updates.