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);
|
The best prophet of the future is the past. |