BufferedBackend getline() hangs and potentially blocks shutdown
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 95
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Running BeamMP-Server inside Pterodactyl/Docker container it hangs when shutting down via exit command. The process never exits on its own and has to be force-killed. Seems like the library's input-read is stuck waiting for input that never arrives. https://github.com/lionkor/commandline/blob/55d125ad83a2db91021b13c7b7b1e6558b3110b0/src/backends/BufferedBackend.cpp#L67-L75
Related: https://github.com/BeamMP/BeamMP-Server/issues/491
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/backends/BufferedBackend.cpp lines 67-75 and inspect how getline() behaves when the process runs in a Pterodactyl or Docker container. Reproduce the exit-command shutdown scenario and trace the input-read path. Done means the process exits without requiring a force-kill when no input arrives.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100