/
index
/
mage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
b02b0a8
)
ignore SIGPIPE
author
git
<redacted>
Sat, 23 May 2026 14:58:14 +0000
(10:58 -0400)
committer
git
<redacted>
Sat, 23 May 2026 14:58:14 +0000
(10:58 -0400)
mage.c
patch
|
blob
|
history
diff --git
a/mage.c
b/mage.c
index 6de62b8859fcd41dd234f7b96f911cd2a9c928d0..6d12d3368f48d177b3e666dc84b776cbeaee8781 100644
(file)
--- a/
mage.c
+++ b/
mage.c
@@
-6,6
+6,7
@@
#include <sys/stat.h>
#include <sys/socket.h>
+#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@
-470,6
+471,8
@@
main(int argc, char *argv[])
MagickWandGenesis();
seedinit();
+ signal(SIGPIPE, SIG_IGN);
+
serversock = socket(AF_INET, SOCK_STREAM, 0);
if (serversock < 0)
err(1, "socket");