I see the code has a getmem call, but no freemem? on exit?
Good observation. Not so critical considering execvp() will never finish
I'm sure there is some better way to implement this.
And there is not validation for the value returned in fpfork().
This is a very basic example, used to show how create terminals.