1#include <spawn.h> 2 3int posix_spawnattr_setpgroup(posix_spawnattr_t* attr, pid_t pgrp) { 4 attr->__pgrp = pgrp; 5 return 0; 6} 7