ping-ipc sample (use fork) & code cleanup