Progress: infinite loop.

I finally got the syscalls right.