Poker is usually played with table stakes i.e. during a hand a player can use only the chips he had on the table in the beginning of the hand. The rule of table stakes has an extension called all–in i.e. a player cannot be forced to stop the game if he has not enough chips to call. If a player has not enough chips to call, he goes all-in. This player can get something from that part of the pot he participated in with his last bet. All further actions of other players relate to the so called “side pot” and the player who goes all-in has nothing to do with it.