mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-06 22:47:20 +00:00
Put more thought into new signaling code
This commit is contained in:
parent
6107eb38f9
commit
f68fc1f815
10 changed files with 127 additions and 51 deletions
|
@ -323,6 +323,7 @@ textwindows int64_t __proc_search(int pid) {
|
|||
int64_t handle = 0;
|
||||
BLOCK_SIGNALS;
|
||||
__proc_lock();
|
||||
// TODO(jart): we should increment a reference count when returning
|
||||
for (e = dll_first(__proc.list); e; e = dll_next(__proc.list, e)) {
|
||||
if (pid == PROC_CONTAINER(e)->pid) {
|
||||
handle = PROC_CONTAINER(e)->handle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue