Skip to content

Instantly share code, notes, and snippets.

@mattf
Created December 28, 2011 18:25
Show Gist options
  • Save mattf/1529018 to your computer and use it in GitHub Desktop.
Save mattf/1529018 to your computer and use it in GitHub Desktop.
newpgid tool
#include <unistd.h>
int
main(int argc, char *argv[])
{
setpgid(0, 0);
execvp(argv[1], &(argv[1]));
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment