// This writes the pid of the current process to each tasks file. These are special files that,
// when written to, will assign the process associated with the pid to the respective cgroup.
This writes the pid of the current process to each tasks file. These are special files that,
when written to, will assign the process associated with the pid to the respective cgroup.
This writes the pid of the current process to each tasks file . These are special files that when written to will assign the process associated with the pid to the respective cgroup .
pub fn attach_pid(&self) -> Result<()> {
        let pid = process::id();
        for tasks_file in &self.tasks_files {
            writeln_special(tasks_file, pid)?;
        }
        Ok(())
    }
pub fn attach_pid ( & self ) -> Result < ( ) > { let pid = process :: id ( ) ; for tasks_file in & self . tasks_files { writeln_special ( tasks_file , pid ) ? ; } Ok ( ( ) ) }
This writes the pid of the current process to each tasks file.
This writes the pid of the current process to each tasks file .
&self