important-rainbow-47551
11/07/2025, 4:20 PMpython gemsim.py connect --room my-first-room in the terminal, but I cannot stop or kill the previous command.tall-airline-16756
11/07/2025, 4:20 PMtall-airline-16756
11/07/2025, 4:22 PMpython gemsim.py connect --room my-first-room, simply press Ctrl+C in your terminal. This will send a SIGINT signal, and the SDK examples are designed to handle this gracefully by disconnecting you from the room and stopping the process smoothly.
Alternatively, if you prefer, you can send a SIGTERM signal to the process. And if you're managing this through code, you can use Room.disconnect() to leave the room safely. Please feel free to reach out if you need any more help with this!
Sources: terminal-client/client.py | Connecting to LiveKit | LiveKit docs | Managing rooms | LiveKit docs | Agents telephony integration | LiveKit docs | examples/video-stream/video_play.pyimportant-rainbow-47551
11/09/2025, 12:21 PMimportant-rainbow-47551
11/09/2025, 12:21 PMtall-airline-16756
11/09/2025, 12:21 PMpgrep python or ps aux | grep python to locate the PID of your running Python process. For example:
`ps aux | grep python`Just look for the process that’s running gemsim.py and note down its PID.
2. If you’re on Windows, try tasklist | findstr python to find the Python process and its PID.
3. Once you have the PID, you can send SIGINT with:
`kill -SIGINT <PID>`or if needed, SIGTERM using:
kill -SIGTERM <PID>
If this still doesn’t resolve the issue, please feel free to share if you’re running this in a particular environment like Docker or Kubernetes, or if you’d like more help with handling signals. I’m here to help!important-rainbow-47551
11/09/2025, 12:34 PMtall-airline-16756
11/09/2025, 12:34 PM