diff options
author | mischief <mischief@offblast.org> | 2015-08-25 02:07:46 -0700 |
---|---|---|
committer | mischief <mischief@offblast.org> | 2015-08-25 02:07:46 -0700 |
commit | 6b402b83cffc97015345dab1c27c35afe64bb3db (patch) | |
tree | b525f9443564682c46f8c36af6a4d238bd39a756 /sys/src/libthread | |
parent | dbe0a995f03f26ea2b6859d21df3bd67856d672d (diff) |
import E script from bell labs
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 ebb563307..f8946c214 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 && p->nthreads == 1){ + if(t->cmdname){ 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 708b65ed1..f9a794d1b 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)^~0; + //_threaddebuglevel = (DBGSCHED|DBGCHAN|DBGREND); _systhreadinit(); _qlockinit(_threadrendezvous); _sysfatal = _threadsysfatal; |