support process group

This commit is contained in:
Tomoki Shirasawa
2014-08-18 17:08:28 +09:00
parent 663c121308
commit 78d10cce80
8 changed files with 103 additions and 3 deletions

View File

@ -70,6 +70,7 @@ struct program_load_desc {
int pid;
int err;
int stack_prot;
int pgid;
unsigned long entry;
unsigned long user_start;
unsigned long user_end;

View File

@ -215,6 +215,7 @@ struct program_load_desc *load_elf(FILE *fp, char **interp_pathp)
}
}
desc->pid = getpid();
desc->pgid = getpgid(0);
desc->entry = hdr.e_entry;
desc->at_phdr = load_addr + hdr.e_phoff;