Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'

This commit is contained in:
-Puter
2026-07-19 03:25:10 +05:30
parent dd1071cc10
commit 2daf979036
2214 changed files with 673090 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "this should not run because it doesn't have execute permissions"

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# This script spawns child processes and then exits early
echo "Parent process started with PID $$"
# Spawn multiple child processes that will outlive the parent
for i in {1..3}; do
(
# Child process
child_pid=$BASHPID
echo "Child $i started with PID $child_pid"
# Spawn a grandchild that runs for a long time
(
grandchild_pid=$BASHPID
echo "Grandchild of child $i started with PID $grandchild_pid"
# Keep running for 30 seconds
sleep 30
) &
# Keep the child running
sleep 30
) &
done
# Give children time to start
sleep 0.5
# Exit early (simulating a crash or early termination)
echo "Parent exiting early with status 1..."
exit 1

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
# This script spawns child processes to test process group cleanup
echo "Parent process started with PID $$"
# Spawn multiple child processes
for i in {1..3}; do
(
# Child process
child_pid=$BASHPID
echo "Child $i started with PID $child_pid"
# Spawn a grandchild that runs for a long time
(
grandchild_pid=$BASHPID
echo "Grandchild of child $i started with PID $grandchild_pid"
# Keep running for 60 seconds
for j in {1..60}; do
sleep 1
done
) &
# Keep the child running
for j in {1..60}; do
sleep 1
done
) &
done
# Keep the parent running
echo "Parent process waiting..."
wait

View File

@@ -0,0 +1 @@
value

View File

@@ -0,0 +1 @@
123

View File

@@ -0,0 +1 @@
hello

View File

@@ -0,0 +1 @@
keepitsafe

View File

@@ -0,0 +1 @@
lorem ipsum dolar sit amet