nuttx-apps/system
ligd 79a137495a cu: fix cu hang when meet ctrl + C
We can't do sem_wait in sigaction

hang backtrace:
[<0x2c5a6958>] arm_switchcontext+0xc/0x10
[<0x2c579eba>] nxsem_wait+0x6e/0xa8
[<0x3c9a8cb5>] pb_field_iter_find+0xffde8cb/0xd3635c15
[<0x2c58d164>] uart_tcdrain.constprop.0+0x10/0xf8
[<0x2c58d5c6>] uart_close+0x10e/0x180
[<0x2c579f38>] nxsem_wait_uninterruptible+0x44/0xb8
[<0x2c95f87a>] file_close+0x12/0x44
[<0x2c95e5a8>] close+0x80/0xb4
[<0x2c5c6396>] sigint+0x1a/0x28
[<0x2c57b1b0>] nxsig_deliver+0x54/0xb8
[<0x2c5a549a>] arm_sigdeliver+0x1a/0x44
[<0x2c579eb6>] nxsem_wait+0x6a/0xa8
[<0x2c579eb6>] nxsem_wait+0x6a/0xa8
[<0x2c579eb6>] nxsem_wait+0x6a/0xa8
[<0x2c58aa1a>] pm_lock+0x1a/0x28
[<0x2c58a656>] pm_stay+0xa/0x60
[<0x2c58bb14>] rptun_notify+0x4c/0x58
[<0x2c97b8fc>] virtqueue_kick+0x54/0x7c
[<0x2c97ac82>] rpmsg_virtio_send_offchannel_nocopy+0x9a/0xcc
[<0x2c58df7c>] uart_rpmsg_dmasend+0x8c/0xe0
[<0x2c5771be>] leave_critical_section+0x2e/0x54
[<0x2c58d124>] uart_write+0x11c/0x14c
[<0x2c9620c6>] write+0x32/0x50
[<0x2c5c665e>] cu_main+0x2ba/0x484
[<0x2c5957be>] nxtask_startup+0x12/0x24
[<0x2c57b9d2>] nxtask_start+0x46/0x60

Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-29 19:21:52 +03:00
..
adb system/adb: Update to microADB to the latest version 2022-03-15 09:16:27 +02:00
argtable3 argtable3: Workaroud a clang warning 2021-06-17 07:21:52 +02:00
cdcacm Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL 2021-08-06 11:04:35 +02:00
cfgdata open() options: pass file options 0 if only ioctl is used 2022-04-01 12:22:07 -03:00
cle Add printflike to all printf like functions 2022-07-18 14:09:10 +03:00
composite Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL 2021-08-06 11:04:35 +02:00
critmon system/critmon: Fix dead code 2022-04-19 18:21:00 +08:00
cu cu: fix cu hang when meet ctrl + C 2022-07-29 19:21:52 +03:00
dhcpc system: nxstyle fixes 2021-06-11 02:42:05 -05:00
dumpstack system/dumpstack: add dump stack tool support 2021-08-01 23:56:36 -07:00
embedlog Remove CONFIG_CLOCK_MONOTONIC special code 2022-02-23 01:21:44 +08:00
flash_eraseall system: nxstyle fixes 2021-06-11 02:42:05 -05:00
gcov system: Add gcov command 2022-05-04 18:08:07 +03:00
hex2bin Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 16:42:32 +02:00
hexed Add printflike to all printf like functions 2022-07-18 14:09:10 +03:00
hostname system/hostname: Add an option to read the hostname from a file 2022-07-18 12:29:51 +08:00
i2c Add printflike to all printf like functions 2022-07-18 14:09:10 +03:00
input definitions: unify MAX and MIN macro definitions 2022-03-16 23:20:17 +08:00
libuv system/libuv: Fix the undefined reference to `uv__strscpy' 2022-06-03 20:25:52 +03:00
lm75 system: update licenses to Apache 2021-06-11 02:42:05 -05:00
lzf system/lzf: correct the open mode 2021-12-20 09:12:52 -06:00
mdio system: nxstyle fixes 2021-06-11 02:42:05 -05:00
netdb system: nxstyle fixes 2021-06-11 02:42:05 -05:00
nsh nsh: sh_main also support isctty = true 2022-03-30 22:47:37 +03:00
ntpc system: fix relative path CI error 2021-06-16 09:03:06 -05:00
nxlooper nxlooper: nxlooper should wait call buffer returned before close 2022-07-29 19:18:34 +03:00
nxplayer According to the help text, the balance command without value 2022-04-11 11:07:49 +08:00
nxrecorder system: Fix nx[looper|player|recorder] warning 2022-03-23 11:05:18 +02:00
ping system/ping: Guard against division by zero when calculating the RTT. 2022-04-23 20:17:45 +03:00
ping6 system/ping: Guard against division by zero when calculating the RTT. 2022-04-23 20:17:45 +03:00
popen system: popen: Fix to build with CONFIG_BUILD_KERNEL=y 2022-07-29 10:20:19 +08:00
psmq system/psmq: update to v0.2.1 2021-05-23 23:57:25 +01:00
ramspeed rename ramspeed to ramspeed_main 2022-03-14 18:46:07 +08:00
ramtest system: update licenses to Apache 2021-06-11 02:42:05 -05:00
readline Fix readline_common.c:277:19: error: 'strncpy' destination unchanged after copying no bytes 2022-03-06 00:40:06 +08:00
sched_note system/sched_note: fix build break 2022-05-12 14:55:34 +08:00
setlogmask apps: system: setlogmask: update licenses to Apache 2022-03-08 17:04:01 +02:00
spi Add printflike to all printf like functions 2022-07-18 14:09:10 +03:00
stackmonitor system: nxstyle fixes 2021-06-11 02:42:05 -05:00
system Call posix_spawn with filename as the first argv entry 2021-06-14 07:12:54 -06:00
taskset Include assert.h for DEBUGASSERT caller 2021-05-24 12:34:37 +09:00
tee Makefile: Uros Platise: update licenses to Apache 2021-06-07 21:35:33 -05:00
telnet Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
termcurses system/termcurses: Fix the compiler warning 2022-03-07 00:58:19 +08:00
trace trace: format the usage output 2022-05-12 14:55:34 +08:00
ubloxmodem style: unify path to files in comment section 2022-03-09 10:37:33 +08:00
uniqueid apps: unify FAR attribute usage across apps 2022-04-05 00:55:22 +08:00
uorb app/system/uorb: fix error, memset() wrong size. 2022-07-23 16:57:58 -03:00
usbmsc Fix boarctl typos 2022-01-16 08:07:47 +01:00
vi Add printflike to all printf like functions 2022-07-18 14:09:10 +03:00
zmodem Typo fixes. 2022-01-06 10:30:41 +08:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00