modified for nommu architecture (no fork())