Welcome to the Linux Foundation Forum!

Lab 2.1 - Cannot write process to tasks file

Options

I've tried to write the process to the tasks file but I keep getting a "No such process error." I am running it as the root user on a Ubuntu 20.04 desktop. Any reason why I cannot write the process?

Thanks,
Chris

Comments

  • chrispokorni
    chrispokorni Posts: 2,165
    Options

    Hi @clemay,

    Can you provide the outputs for the following commands running as root?

    ls /sys/fs/cgroup/freezer/mycgroup
    cat /sys/fs/cgroup/freezer/mycgroup/tasks
    ps
    echo <bash-process-PID>  >> /sys/fs/cgroup/freezer/mycgroup/tasks
    cat /sys/fs/cgroup/freezer/mycgroup/tasks
    

    Regards,
    -Chris

Categories

Upcoming Training