In reply to shamsheer:
Please use code tags making your code easier to read. I have added them for you.
And please see this article about posting better questions. The way your code is written, we have no way of knowing if
- the fork ever got executed
- the disable ever got executed
- the fork finished before the disable