While I'm running some program in Terminal (or iTerm2), when the program forks the process, the OS X desktop switches focus from the current application to the forked process. When this happens, the forked process name shows in OS X menu bar.
This is especially annoying while using full screen mode as it causes the workspace to change when the forked process receives focus.
How can I stop this focus switch from happening? These terminal programs are interrupting the work I'm doing in other applications while they run.