Artifact a78413d26e662ecffba2227c1998e1651502369d6d9dd9a081d117ab36e34b59:
- File
src/userdb.c
-
2026-11-21 12:03:36
— part of check-in
[eae917e9e9]
on branch shared-store
— Shared journal store: several pic processes on one workspace, one conversation each
Each conversation has a lease (an exclusive flock beside the journal) that its process holds while it advances it and that the kernel drops when the process and its forked children are gone. Taking a lease claims the conversation's request and settles what a dead owner left; open recovers only conversations whose lease is free. The journal lock is held shared and taken exclusive only to create or migrate the schema. SQLite runs in normal locking mode with the fair busy handler; dev builds stop on a write begun under an open read.
pic run takes only requests nobody is running. A second pic asking into a conversation in use is refused with its owner's pid. An edit that misses in a file another conversation changed says so and shows the file; a write to such a file is refused once.
New test/pic/shared.sh: two-process crash matrix, kill -9 beside a live pic, claim and admission races, stale-file results. No schema change. (user: dmestas, size: 25430) [annotate] [blame] [check-ins using]
- 2026-11-21 13:14:25 — part of check-in [f7ee118f06] on branch trunk — land shared-store (user: pi-c-lander, size: 25430) [annotate] [blame] [check-ins using]
- 2026-11-21 16:04:45 — part of check-in [cef29b55cb] on branch docs-help — pic help [TOPIC] and /help TOPIC: the manual and reference compiled in (src/manual.inc, built, not committed); pic --help is a 27-line synopsis; help.sh tests both and checks the synopsis against docs/reference/cli.md; doc fixes: Alt+P picks a model, 36 RPC commands, more differences from Pi (user: dmestas, size: 25430) [annotate] [blame] [check-ins using]
-
2026-11-21 12:03:36
— part of check-in
[eae917e9e9]
on branch shared-store
— Shared journal store: several pic processes on one workspace, one conversation each