~aleteoryx/9c

ref: 12175ab5a406316bb00470acbcff3b589b1f343a 9c/qlock.c -rw-r--r-- 231 bytes
12175ab5 — glenda whatever i was doing last time a day ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <u.h>
#include <libc.h>

QLock l;

int
on_note(void *, char *ty)
{
	fprint(2, "%d: note: %s\n", getpid(), ty);
	return 0;
}

void
main(int argc, char **argv)
{
	int pid;

	atnotify(on_note, 1);

	fork();

	sleep(10000);
}