diff options
author | glenda <glenda@cirno.localdomain> | 2015-08-25 09:35:10 +0000 |
---|---|---|
committer | glenda <glenda@cirno.localdomain> | 2015-08-25 09:35:10 +0000 |
commit | c4fdc6bfdb2211e13643d5fba75edf437c122eef (patch) | |
tree | d5991bc7350d3058cfcefe06dfa43814e62df919 /sys/src/libthread/id.c | |
parent | 6b402b83cffc97015345dab1c27c35afe64bb3db (diff) |
fix fuckup
Diffstat (limited to 'sys/src/libthread/id.c')
-rw-r--r-- | sys/src/libthread/id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libthread/id.c b/sys/src/libthread/id.c index f8946c214..ebb563307 100644 --- a/sys/src/libthread/id.c +++ b/sys/src/libthread/id.c @@ -71,7 +71,7 @@ threadsetname(char *fmt, ...) va_start(arg, fmt); t->cmdname = vsmprint(fmt, arg); va_end(arg); - if(t->cmdname){ + if(t->cmdname && p->nthreads == 1){ snprint(buf, sizeof buf, "#p/%lud/args", _tos->pid); //getpid()); if((fd = open(buf, OWRITE)) >= 0){ write(fd, t->cmdname, strlen(t->cmdname)+1); |