switched from lockf to pipe handshaking for process sync.