crystal/test-nested-process.sh
Jordan Bentley 7f2e862b72
Revert "refactor: Comprehensive project root cleanup and organization (#93)"
This reverts commit 95c934cb2fb0ea9ba3aa52e27857db6492a444a0.
2025-07-22 11:51:46 -04:00

27 lines
538 B
Bash
Executable File

#!/bin/bash
# Test script that creates nested processes
echo "Starting parent process (PID: $$)"
# Create a child process that creates its own children
(
echo "Child process started (PID: $$)"
# Create grandchild processes
(
echo "Grandchild 1 started (PID: $$)"
sleep 300 # Sleep for 5 minutes
) &
(
echo "Grandchild 2 started (PID: $$)"
sleep 300 # Sleep for 5 minutes
) &
# Child process also sleeps
sleep 300
) &
# Parent process sleeps
echo "Parent will sleep for 5 minutes..."
sleep 300