fiber: set fiber->csw = 0 for every creating fiber
It is strange to create a new fiber and see that it has yielded 100 times, when in fact it never actually did it. The patch makes fiber->csw = 0 for each created fiber. Follow-up #5799
Showing
- changelogs/unreleased/gh-5799-set-csw-is-0-for-new-fibers.md 3 additions, 0 deletionschangelogs/unreleased/gh-5799-set-csw-is-0-for-new-fibers.md
- src/lib/core/fiber.c 1 addition, 0 deletionssrc/lib/core/fiber.c
- test/app/gh-5799-fiber-info.result 1 addition, 3 deletionstest/app/gh-5799-fiber-info.result
- test/app/gh-5799-fiber-info.test.lua 1 addition, 3 deletionstest/app/gh-5799-fiber-info.test.lua
Please register or sign in to comment