1
0
Fork
You've already forked srv
0
No description
  • C 93.6%
  • Makefile 6.4%
2025年10月26日 12:49:13 -04:00
.exrc wip branch:main 2025年10月20日 19:15:53 -04:00
.gitignore wip branch:main 2025年10月25日 00:44:55 -04:00
daemonize.c wip branch:main 2025年10月25日 15:54:59 -04:00
daemonize.h wip branch:main 2025年10月20日 20:28:54 -04:00
log.c wip branch:main 2025年10月26日 11:16:36 -04:00
log.h wip branch:main 2025年10月25日 00:44:09 -04:00
main.c show that daemon() seems to work and the parent id goes to one afterwards, and that the pid and gid do indeed change. 2025年10月26日 12:49:13 -04:00
Makefile show that daemon() seems to work and the parent id goes to one afterwards, and that the pid and gid do indeed change. 2025年10月26日 12:49:13 -04:00
README wip branch:main 2025年10月26日 11:23:05 -04:00

man dup
man deamon
daemonize.[ch] isn't used, because the 
above daemon() function from stdlib.h
seems to do this and the call looks 
like: r = daemonize(0, 0);
So that's it, I'll just use that.
See how cool it is programming in C
on OpenBSD :).
---
The log.[ch] is just my helper stuff.
I wanted to write to a file because
if you lose stdout and stderr ...