mirror of
https://github.com/apache/nuttx.git
synced 2025-12-10 04:04:18 +08:00
Exec: Support run exec in current task
Fix the problem when vfork() calls execv() (or execl()) to start a new application: When the parent thread calls vfork() it receives and gets the pid of the vforked task, and not the pid of the desired execv'ed application. issue #3334 Signed-off-by: yangyalei <yangyalei@xiaomi.com>
This commit is contained in:
@@ -61,5 +61,7 @@ if(CONFIG_BUILTIN)
|
||||
list(APPEND SRCS builtin.c)
|
||||
endif()
|
||||
|
||||
target_include_directories(binfmt PRIVATE ${CMAKE_SOURCE_DIR}/sched)
|
||||
|
||||
target_sources(binfmt PRIVATE ${SRCS})
|
||||
target_include_directories(binfmt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
Reference in New Issue
Block a user