Refactor architecture to use standalone scripts in ~/.local/bin/ instead of ~/.bashrc
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
test_func() {
|
||||
echo "Starting background process..."
|
||||
sleep 100 &
|
||||
local pid=$!
|
||||
echo "Background PID: $pid"
|
||||
|
||||
echo "Starting foreground sleep (simulate claude)..."
|
||||
sleep 10
|
||||
|
||||
echo "Foreground sleep finished. Cleaning up background process $pid..."
|
||||
kill "$pid"
|
||||
wait "$pid" 2>/dev/null
|
||||
echo "Cleanup done."
|
||||
}
|
||||
|
||||
test_func
|
||||
Reference in New Issue
Block a user