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); |
Your mode of life will be changed for the better because of new developments. |