When I joined the Air Force in 1982 it was spelled out for us on the contracts we signed. I remember, at Lackland AFB, a TSgt coming in and explaining to all of us that if war broke out during our term of enlistment, that we could be extended indefinitely until the hostilities are over. She then gave us a chance to back out, no one did.
I know it's still the same today.