while (1) fork();doing a bit of additional checking similar to that done by forktest.
DO NOT RUN THIS ON A REAL SYSTEM - IT WILL GRIND TO A HALT AND PEOPLE WILL COME AFTER YOU WIELDING BASEBALL BATS AND/OR THE AD BOARD. WE WARNED YOU.
Note that this may turn out to be hard to achieve in practice. Don't spend much time fixing problems forkbomb triggers that won't arise under more normal operation. (If in doubt, consult the course staff.)