> Though, i still dont; understand why tcgetpgrp return 100000 > (an unusually high number). arghh! heck! got it man tcgetpgrp If there is no foreground process group, tcgetpgrp() returns an invalid process ID. (missed the line in the man cuz was looking for RETURN VALUE section) -- Regards, Artem