Compare commits
3 commits
aeee552947
...
7c796a567f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7c796a567f | ||
![]() |
8780761486 | ||
![]() |
42cdd1e16d |
3 changed files with 6 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,3 @@
|
||||||
.clangd
|
|
||||||
|
|
||||||
*.o
|
*.o
|
||||||
|
|
||||||
feuille
|
feuille
|
||||||
|
|
|
@ -270,6 +270,11 @@ int main(int argc, char *argv[])
|
||||||
daemon(1, 0);
|
daemon(1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ignore most signals that could kill feuille */
|
||||||
|
verbose(3, "ignoring signals that could kill feuille...");
|
||||||
|
|
||||||
|
signal(SIGPIPE, SIG_IGN); /* when send(2) or write(2) fails */
|
||||||
|
|
||||||
|
|
||||||
/* chroot and drop root permissions */
|
/* chroot and drop root permissions */
|
||||||
if (getuid() == 0) {
|
if (getuid() == 0) {
|
||||||
|
|
Reference in a new issue