feat: publish Dever core with project scaffolding and versioned AI skills
This commit is contained in:
1 parent
70fa73cdc2
commit
ac458ffa7f
960 files changed
+221319
-1163
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/* Native author fixture for compile cancellation and deadline supervision. */
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
if (argc == 2 && strcmp(argv[1], "--dever-health") == 0) return 0;
|
||||
FILE *pid = fopen("worker.pid", "w");
|
||||
if (!pid) return 2;
|
||||
if (fprintf(pid, "%ld", (long)getpid()) < 0 || fclose(pid) != 0) return 3;
|
||||
struct timespec remaining = {300, 0};
|
||||
while (nanosleep(&remaining, &remaining) != 0) {
|
||||
if (errno != EINTR) return 4;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user