ref: d8aa44c3580e71de01299e332eb07c0fa56fbf89
parent: 1da98b1b24fe55f1d58c109cc1cd6018cc0eb6c8
author: Jacob Moody <moody@posixcafe.org>
date: Sun Dec 17 21:26:40 EST 2023
cleanup and threadsetname
--- a/src/Backends/Platform/9front.cpp
+++ b/src/Backends/Platform/9front.cpp
@@ -103,6 +103,7 @@
int kbfd, n;
Rune r;
+ threadsetname("keyproc"); kbfd = open("/dev/kbd", OREAD);if(kbfd < 0)
sysfatal("open: %r");@@ -131,8 +132,6 @@
{ enum { Aresize, Amouse, Aend };Mouse m;
- Memimage *b;
- Memimage *memscreen = nil;
Alt a[] = { [Amouse] { nil, &m, CHANRCV },@@ -139,6 +138,7 @@
[Aresize] { nil, nil, CHANRCV }, [Aend] { nil, nil, CHANEND },};
+ threadsetname("resizeproc");a[Amouse].c = mctl->c;
a[Aresize].c = mctl->resizec;
@@ -155,7 +155,6 @@
{(void)drag_and_drop_callback;
(void)window_focus_callback;
- int pid;
memimageinit();
if(initdraw(nil, nil, "cstory") < 0)
--
⑨