I’m facing a strange issue with klish on OpenWrt and would love to hear your thoughts.
I set up OpenWrt with a non-root user and assigned klish as the login shell. Everything works fine in general, but I’m running into a problem with logread -f.
When I run logread -f inside a klish shell, it just never terminates. Ctrl+C doesn’t stop it, and it feels like the process is ignoring signals entirely.
To further experiment, I tried running `logread -f` as root works perfectly (with klish shell). I also made a new user with ash shell and the logread was fine there too. Other commands like ping and tcpdump handle signals correctly under klish
Because of this, I don’t think it’s a logread bug. It really seems like something about how klish handles or forwards signals, maybe around process groups or foreground control.
I did some debugging and signal handling looks like the likely culprit, but I’m not familiar enough with klish internals to be sure.
Is this a known behavior or limitation in klish?
Is there anything about how klish manages signals that could explain this?
Any pointers on where to look or how to debug this further would be really appreciated.
Thanks for your time.
Dharmik
--
You received this message because you are subscribed to the Google Groups "klish" group.
To unsubscribe from this group and stop receiving emails from it, send an email to klish+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/klish/157d806c-3591-4b5e-b81f-764c58d38707n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/klish/7d3efc72-311e-44ce-a25c-6b4d383cc74e%40gmail.com.