Compare commits

...

3 Commits

Author SHA1 Message Date
Tom MTT. 7c796a567f fix(.gitignore): remove .clangd from ignored files 1 year ago
Tom MTT. 8780761486 style(server.c): minor fix 1 year ago
Tom MTT. 42cdd1e16d fix(feuille.c): ignore SIGPIPE errors
feuille was being killed by SIGPIPE when it tried to send data to an
already closed socket (e.g. when someone did a nmap scan on feuille's
port.)
1 year ago

2
.gitignore vendored

@ -1,5 +1,3 @@
.clangd
*.o
feuille

@ -270,6 +270,11 @@ int main(int argc, char *argv[])
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 */
if (getuid() == 0) {

Loading…
Cancel
Save