    if (fwrite(cpuset_buf, sizeof(char), strlen(cpuset_buf), fd) != strlen(cpuset_buf))     {     sprintf(log_buffer, "failed to move pid %d to cpuset %s", pid, cpuset_path);     log_err(errno, __func__, log_buffer);     