What its "agetty" and why its eating my cpu?

Attached an screenshot
Yes, thats because im sending a hearbeat from y app to the rpi watchdog and if not root i can not write to /dev/watchdogRaTTuS wrote: your running gestorTurnos as root and that is what is taking up all the cpu ...
see what PeterO said
and fixed ;-p
What code are do you refer, the class i made for watchdog its
I run raspi-config and said no to:
Code: Select all
sudo systemctl stop serial-getty@ttyAMA0.service
sudo systemctl disable serial-getty@ttyAMA0.service