zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.39k stars 1.16k forks source link

Closing SSH connection while Micro runs as root using "sudo su" eats 60%-100% CPU #3249

Closed networkydev closed 2 months ago

networkydev commented 2 months ago

Description of the problem or steps to reproduce

ssh into your server. Open a root shell by using sudo su. Now open micro using micro. Use your window manager to quit the terminal hosting the connection. So on linux Super + Q (usually) or the x and on Windows click the x.

This issue is related to #2569, the difference is that instead of using su root to open root shell, you must use sudo su.

Specifications

Commit hash:

OS:

Terminal:

dmaluka commented 2 months ago

Output via micro -version: Version: 2.0.11

Hmm, but the original issue #2569 was reported on 2.0.11 too, and the first release with the fix 5739daf for it was 2.0.12. Could you try with 2.0.12 or 2.0.13?

networkydev commented 2 months ago

It fixed it, the server is running Debian so the package was not fully up to date. Had to manually grab the 2.0.13 .deb file and install it. Thanks!