From 21df9b77fac68aeae40b09df7f9f5e0135f31e0d Mon Sep 17 00:00:00 2001 From: asandikci Date: Wed, 26 Jul 2023 10:38:37 +0300 Subject: [PATCH] update gitignore and readme --- .gitignore | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 10 +++++++++- 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index adf8f72..a82e517 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,57 @@ # Go workspace file go.work + +# ---> C +# Prerequisites +*.d + +# Object files +*.o +*.ko +*.obj +*.elf + +# Linker output +*.ilk +*.map +*.exp + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo + +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + +# Debug files +*.dSYM/ +*.su +*.idb +*.pdb + +# Kernel Module Compile Results +*.mod* +*.cmd +.tmp_versions/ +modules.order +Module.symvers +Mkfile.old +dkms.conf \ No newline at end of file diff --git a/README.md b/README.md index b4281d4..4942181 100644 --- a/README.md +++ b/README.md @@ -32,4 +32,12 @@ The operating system groups processes into session and process groups. Each sess Processes receive their inputs and send their outputs to **controlling terminal**. A controlling terminal is associated with only **one** session at a time -A session and process groups in it have identification (**ID**) numbers; these identification numbers are the process identification numbers (**PID**) of the session and process group leaders. A child process shares the same group as its parent process \ No newline at end of file +A session and process groups in it have identification (**ID**) numbers; these identification numbers are the process identification numbers (**PID**) of the session and process group leaders. A child process shares the same group as its parent process + +
+ +#### Creating a Daemon Process +c-daemon + +To create a demon process, we need a background process whose parent process is init. In the code [_daemon](https://git.aliberksandikci.com.tr/Liderahenk/go-daemon/src/commit/ca61ee4ac26ae3855d41581baba2b44dbabc0cd3/c-daemon/daemon.c#L10) creates a child process and then kils the parent process. In this case, our new process will be a subprocess of init and will continue to run in background! +