Well, this seems to be quite a strange problem.
I have written a pgm which does simple operations like a few system calls, open & close files, few couts & cins. It also executes few processes in background, but the pgm exits only after the background proc are complete.
Once this pgm is executed...