Unified · Split
| @@ -382,9 +382,13 @@ readcolors(void *x) · 381 unmodified lines | ||
| 382 | 382 | Color *c, *new; |
| 383 | 383 | Biobuf *b; |
| 384 | 384 | char *s; |
| 385 | + char tmp[64]; | |
| 385 | 386 | int i, n; |
| 386 | 387 | |
| 387 | 388 | b = x; |
| 389 | + n = sprint(tmp, "readcolors "); | |
| 390 | + fd2path(Bfildes(b), tmp+n, sizeof(tmp)-n); | |
| 391 | + threadsetname(tmp); | |
| 388 | 392 | new = nil; |
| 389 | 393 | for (i = 1; (s = Brdstr(b, '\n', 1)) != nil; i++) { |
| 390 | 394 | if (new == nil) |