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 | |
parent | 6b402b83cffc97015345dab1c27c35afe64bb3db (diff) |
fix fuckup
Diffstat (limited to 'sys/src/libthread')
-rw-r--r-- | sys/src/libthread/id.c | 2 | ||||
-rw-r--r-- | sys/src/libthread/main.c | 2 |
2 files changed, 2 insertions, 2 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); diff --git a/sys/src/libthread/main.c b/sys/src/libthread/main.c index f9a794d1b..708b65ed1 100644 --- a/sys/src/libthread/main.c +++ b/sys/src/libthread/main.c @@ -31,7 +31,7 @@ main(int argc, char **argv) if(setjmp(_mainjmp)) _schedinit(p); - //_threaddebuglevel = (DBGSCHED|DBGCHAN|DBGREND); +//_threaddebuglevel = (DBGSCHED|DBGCHAN|DBGREND)^~0; _systhreadinit(); _qlockinit(_threadrendezvous); _sysfatal = _threadsysfatal; |