RT-Thread / RT-Thread/rt-thread
[bug] kill命令不能退出后台程序
Open
@heyuanjie87 is already working on this.
Since Jan 9, 2025.
Arch: RISC-V
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
RT-Thread Version
c1166e0bf16aeda85e5facd01506973afcf6e8c6
Hardware Type/Architectures
k230
Develop Toolchain
GCC
Describe the bug
1.后台执行一个程序:/bin/killme.elf &
2.查看进程的ID:list_process,找出刚后台执行应用的pid
3.kill掉后台进程:kill $pid -s 2
4.list_process查看现有的进程
5.发现后台程序还在
Other additional context
#include <stdio.h>
#include <rtthread.h>
int main()
{
printf("Please kill me.\n");
while (1)
{
rt_thread_mdelay(100);
}
return 0;
}
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.