1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00
Benjamin Valentin a6ca535955 sys/shell: native: stop RIOT when the shell reads EOF
Currently when the shell receives EOF on `native`, sending EOF
(ctrl + D) closes the stdin file descriptor, leading to all
consecutive reads to also return EOF.

The result is that `shell_run_forever()` will re-start the shell
forever in a loop, filling up the terminal with

    > > > > > > > > > > > > > > > > > > > > > > …

until the user hits ctrl + C.

This is annoying.

Instead, cleanly shutdown RIOT when receiving EOF on native, which
should match the expected behaviour of most users.
2020-06-30 14:52:53 +02:00
..
2019-11-23 22:39:07 +01:00
2020-02-07 13:35:25 +01:00
2019-11-23 22:39:40 +01:00
2019-11-23 22:39:37 +01:00
2020-02-20 13:24:14 +01:00
2019-11-23 22:39:37 +01:00
2020-04-07 17:48:39 +02:00
2019-11-23 22:39:38 +01:00
2019-09-09 20:27:16 +02:00
2020-03-09 17:56:34 +01:00
2020-06-19 10:44:56 +02:00
2018-08-24 18:14:03 +02:00
2020-06-10 21:21:33 +02:00
2019-06-05 17:10:26 +02:00
2018-10-03 10:44:14 +02:00
2020-02-11 13:59:59 +01:00
2019-04-12 15:51:15 +02:00
2020-06-10 21:21:33 +02:00