waiting for package to be written to shared memory