use std::{os::unix::process::CommandExt, process::Command};
use crate::{builder::CommandGroupBuilder, GroupChild};
impl CommandGroupBuilder<'_, Command> {
pub fn spawn(&mut self) -> std::io::Result<GroupChild> {
self.command.process_group(0).spawn().map(GroupChild::new)
}
}