Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] kill命令不能退出后台程序 #9893

Open
yixinghua121 opened this issue Jan 9, 2025 · 1 comment
Open

[bug] kill命令不能退出后台程序 #9893

yixinghua121 opened this issue Jan 9, 2025 · 1 comment
Assignees
Labels
Arch: RISC-V BSP related with risc-v

Comments

@yixinghua121
Copy link

yixinghua121 commented Jan 9, 2025

RT-Thread Version

c1166e0

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

@unicornx unicornx added the Arch: RISC-V BSP related with risc-v label Jan 13, 2025
@heyuanjie87
Copy link
Contributor

我这用kill 1是可以结束进程的,也可以用killall FILENAME #9935

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: RISC-V BSP related with risc-v
Projects
None yet
Development

No branches or pull requests

3 participants