commit 391363f510a13378b3f3515e763b9c754a242fe0
parent 5b0927915fe3308a3bcb501c871ccf97747162ef
Author: rsc <devnull@localhost>
Date: Mon, 26 Sep 2005 11:46:21 +0000
More thread names.
Diffstat:
3 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/cmd/acme/acme.c b/src/cmd/acme/acme.c
@@ -341,6 +341,7 @@ shutdownthread(void *v)
USED(v);
+ threadsetname("shutdown");
c = threadnotechan();
while((msg = recvp(c)) != nil)
shutdown(nil, msg);
diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c
@@ -1323,6 +1323,8 @@ runproc(void *argvp)
void **argv;
CFsys *fs;
+ threadsetname("runproc");
+
argv = argvp;
win = argv[0];
s = argv[1];
diff --git a/src/cmd/acme/fsys.c b/src/cmd/acme/fsys.c
@@ -139,6 +139,8 @@ fsysproc(void *v)
Fcall t;
uchar *buf;
+ threadsetname("fsysproc");
+
USED(v);
x = nil;
for(;;){