Squash commits for public release

This commit is contained in:
2025-02-12 09:54:05 -05:00
commit 7118adc514
1108 changed files with 80873 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#include <sched.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
const int calls = 10;
volatile int ret = calls;
void save_on_terminate()
{
ret--;
}
int main(int argc, char** argv)
{
int pid = fork();
if (pid) {
for (int i = 0; i < 4; i++) {
// Waiting until child setup its sigaction.
sched_yield();
}
for (int i = 0; i < calls; i++) {
kill(pid, 3);
sched_yield();
}
waitpid(pid, (int*)&ret, 0);
} else {
sigaction(3, save_on_terminate);
while (ret) { }
}
return ret;
}