rem: snprintf(filename, sizeof filename, "/proc/%d/task/%d/attr/current", pp->tgid, pp->tid);
add: snprintf(filename, sizeof filename, "/proc/%d/attr/current", pp->tgid);
context: static int pr_context(char *restrict const outbuf, const proc_t *restrict const pp){  char filename[48];  size_t len;  ssize_t num_read;  int fd;// wchan file is suitable for testing//snprintf(filename, sizeof filename, "/proc/%d/task/%d/wchan", pp->tgid, pp->tid);  snprintf(filename, sizeof filename, "/proc/%d/task/%d/attr/current", pp->tgid, pp->tid);  fd = open(filename, O_RDONLY, 0);  if(likely(fd==-1)) goto fail;  num_read = read(fd, outbuf, 666);  close(fd);  if(unlikely(num_read<=0)) goto fail;  outbuf[num_read] = '\0';  len = strspn(outbuf, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:_0123456789");  if(!len) goto fail;  outbuf[len] = '\0';  return len;fail:  outbuf[0] = '-';  outbuf[1] = '\0';  return 1;}