pub fn set_spawn_hook(
		&self,
		fun: impl Fn(&mut TokioCommandWrap, &JobTaskContext<'_>) + Send + Sync + 'static,
	) -> Ticket {
		self.control(Control::SetSyncSpawnHook(Arc::new(fun)))
	}
Set the spawn hook.

The hook will be called once per process spawned, before the process is spawned. It's given
a mutable reference to the [`process_wrap::tokio::TokioCommandWrap`] and some context; it
can modify or further [wrap](process_wrap) the command as it sees fit.
crates/supervisor/src/job/job.rs