f88b4c08e7b7fed1153bc8aa1dc46806011d4e5f
Previously, Ctrl-C or `kill` during -r's bwrap run left slocker_lite killed outright (default signal disposition), skipping run_container()'s unmount/cleanup entirely and leaving the layer imported and/or mounted as garbage. run_process_foreground() now installs a handler around its waitpid() that forwards the signal to the running child (kill(), async-signal- safe) and keeps waiting (EINTR-retry loop) instead of dying. Once the child actually exits, control returns normally so the existing unmount/cleanup runs as usual. Verified with a backgrounded `-r ... -- /bin/sleep 30`, sending both SIGINT and SIGTERM to the outer slocker_lite PID: process tree exits cleanly, unmount+delete-layer both run, containers-storage layers returns to baseline. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Description
Run a docker image with bubblewrap on low end devices
Languages
C++
97.9%
Python
1%
Meson
0.7%
C
0.3%