LucasPickering / slumber

Terminal-based HTTP/REST client
https://slumber.lucaspickering.me/
MIT License
354 stars 22 forks source link

`slumber` process hangs at 100% CPU if parent process is killed #136

Closed LucasPickering closed 4 months ago

LucasPickering commented 5 months ago

If slumber's parent process is killed (with SIGTERM, although not sure it matters how), instead of terminating the slumber process hangs at 100% CPU and stops responding to SIGTERM itself. I've noticed this with both watchexec and zellij as the parent.

LucasPickering commented 5 months ago

I got pretty far on diagnosing this but couldn't figure out a fix. A few things I found out:

I haven't figured out a way to reproduce this outside of zellij, so it's hard to submit a bug report anywhere for it. I'm not really sure if it's a bug in crossterm or signal_hook (or neither?).