mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 10:23:33 +08:00
Fix a deadlock when using the NSH ifconfig command over Telnet
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4487 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -2563,3 +2563,11 @@
|
||||
for use within the OS.
|
||||
* arch/mips/src/pic32mx/pic32mx_ethernet.c: The PIC32 Ethernet driver
|
||||
is now stable on the PIC32 Starter Kit.
|
||||
* configs/pic32-starterkit/nsh2: Add a PIC32 Ethernet Starter Kit NSH
|
||||
configuration that has no serial console; all interaction is done via
|
||||
Telnet.
|
||||
* net/netdev_sem.c: Correct a deadlock condition by making a seamphore
|
||||
recursive. To my knowledge this deadlock only occurs when running the
|
||||
NSH command ifconfig over Telnet. In that case the function netdev_foreach
|
||||
takes the network device semaphore, but so does the telnet logic causing
|
||||
the deadlock.
|
||||
|
||||
Reference in New Issue
Block a user