Welcome to the Linux Foundation Forum!

Lab 2.1 - Cannot write process to tasks file

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

  • 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

Sign In or Register to comment.