引数pid、引数pgidの両方にゼロを指定
#include < unistd.h >
#include < stdio.h >
int main()
{
if (setpgid(0, 0) < 0){
perror("setpgid");
return 1;
}
return 0;
}
ソフトウェアエンジニアの技術ブログ:Software engineer tech blog
随机应变 ABCD: Always Be Coding and … : хороший