add trivial main loop with sysv ipc.