Avoid malloc()-ing unnecessary things in Process.spawn