Fixed semaphore wait when getting interrupted by signal handler.
Fixed semaphore wait when getting interrupted by signal handler.

septag/termite,septag/termite,BlueCrystalLabs/bx,fluffyfreak/bx,pigpigyyy/bx,u-engine/bx,OlegOAndreev/bx,septag/termite,attilaz/bx,bkaradzic/bx,septag/termite,fluffyfreak/bx,septag/termite,0-wiz-0/bx,MikePopoloski/bx,pigpigyyy/bx,septag/bx,mmicko/bx,attilaz/bx,coconutxin/bx,MikePopoloski/bx,BlueCrystalLabs/bx,dariomanesku/bx,u-engine/bx,dariomanesku/bx,ShuangxueBai/bx,ShuangxueBai/bx,OlegOAndreev/bx,septag/termite,bkaradzic/bx,mmicko/bx,0-wiz-0/bx,coconutxin/bx,septag/bx