aboutsummaryrefslogtreecommitdiff
path: root/tests/fork-exhaustion/init.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 00:57:33 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 00:57:33 +0200
commit44a73ecab6e91519627786a5101cd4f1a2f2b0d7 (patch)
treef5c811050a4d5ee832f5883c4d0c27efddd60817 /tests/fork-exhaustion/init.c
parent5976ad390a15726c3ddfacf8c8b282c8350f9554 (diff)
downloadkmi-44a73ecab6e91519627786a5101cd4f1a2f2b0d7.tar.gz
kmi-44a73ecab6e91519627786a5101cd4f1a2f2b0d7.zip
most of the way to passing tests
Diffstat (limited to 'tests/fork-exhaustion/init.c')
-rw-r--r--tests/fork-exhaustion/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fork-exhaustion/init.c b/tests/fork-exhaustion/init.c
index 0e330f4..7758613 100644
--- a/tests/fork-exhaustion/init.c
+++ b/tests/fork-exhaustion/init.c
@@ -11,8 +11,10 @@ START(pid, tid, d0, d1, d2, d3)
check(pid == 0, "illegal pid for init\n");
id_t our_id = 0;
+
+ int counter = 0;
while (1) {
- printf("forking\n");
+ printf("forking %d\n", counter++);
id_t new_id = sys_fork(&our_id);
if (new_id < 0)
break;