ref: 3255ac4ddae149bf2fa545189090701b46a673a6
parent: 4672956489ed9c9aed2ba9f9772af56f5e88eeea
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Jun 17 10:31:27 EDT 2020
set readcolors thread name
--- a/picker.c
+++ b/picker.c
@@ -382,9 +382,13 @@
Color *c, *new;
Biobuf *b;
char *s;
+ char tmp[64];
int i, n;
b = x;
+ n = sprint(tmp, "readcolors ");
+ fd2path(Bfildes(b), tmp+n, sizeof(tmp)-n);
+ threadsetname(tmp);
new = nil;
for (i = 1; (s = Brdstr(b, '\n', 1)) != nil; i++) {
if (new == nil)