Background Check
자신이 백그라운드 프로세스인지 검사 ¶
int MZ_BackGroundCheck(void)
{
if(tcgetpgrp(STDIN_FILENO) != getpid())
{
fprintf(stdout, "Background process check : stdin is not my fd.\n");
return(0);
}
fprintf(stdout, "Background process check : stdin is my fd.\n");
return(1);
|
He who invents adages for others to peruse takes along rowboat when going on cruise. |










