main.cpp created

This commit is contained in:
2025-05-17 23:22:57 +02:00
parent 0b18290fca
commit e281395767
2 changed files with 28 additions and 0 deletions

3
.gitignore vendored
View File

@@ -86,3 +86,6 @@ dkms.conf
*.out *.out
*.app *.app
settings.json
watch.c
ncwatchfile

25
main.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <syslog.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <stdbool.h>
int main()
{
pid_t parent = getpid();
pid_t child = fork();
if (child > 0) // parent
{
}
else // child
{
}
return EXIT_SUCCESS;
}