Клиппер
Go to file
Lasse Dalegaard e0db9f3a6e serialhdl: prevent creation of controlling tty
When `serialhdl` opens a terminal device it must prevent the device from
becoming the controlling terminal of `klippy`, as such a terminal will
send additional messages to the session leader, e.g. a SIGHUP, which
would kill `klippy`. See e.g. #3981.

pySerial already does this, but for e.g. `klipper_mcu` we were not doing
this ourselves.

On Linux a process must set `O_NOCTTY` when opening any file that could
potentially be a terminal device, to avoid this.

Earlier process daemonization tools prevent this from being an issue by
double forking, but under `systemd` a process must take steps to avoid
opening a controlling terminal.

Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-01 12:59:33 -05:00
.github/workflows workflows: Update stale-issue-bot.yaml to also close invalid tickets 2021-02-02 13:22:35 -05:00
config config: fan pin number correction for Robin Nano 3 (#4005) 2021-02-28 16:17:21 -05:00
docs tmc: Add support for periodic checking of driver status 2021-02-27 10:39:47 -05:00
klippy serialhdl: prevent creation of controlling tty 2021-03-01 12:59:33 -05:00
lib lib: add FatFS notes to README 2021-02-05 19:37:56 -05:00
scripts logextract: Improve handling of TMC UART read/write register commands 2021-02-28 17:15:29 -05:00
src stm32: Add support for 48KiB bootloaders 2021-02-20 09:37:43 -05:00
test test: Add printer-flsun-q5-2020.cfg to printers.test and minor changes 2021-02-22 15:29:34 -05:00
.gitignore util: Fix versioning when gitdir is absent (#809) 2018-10-27 10:44:38 -04:00
COPYING Initial commit of source code. 2016-05-25 11:37:40 -04:00
Makefile Makefile: Improve build when changing micro-controller architecture 2020-12-17 10:02:16 -05:00
README.md docs: Update main README file to point to website 2019-04-20 13:43:35 -04:00

README.md

Welcome to the Klipper project!

Klipper

https://www.klipper3d.org/

Klipper is a 3d-Printer firmware. It combines the power of a general purpose computer with one or more micro-controllers. See the features document for more information on why you should use Klipper.

To begin using Klipper start by installing it.

Klipper is Free Software. See the license or read the documentation.