commit - 9067b8a0aa11ae8c07f215d9e932c8c86b120da9
commit + bea01bd1a3ecf3dbb611dd38a66b08ac3944f1c9
blob - f3ff0b9b8b514d0784d0ad6604a35e38b1b73533
blob + 11a5e5f7e684c772c6b9cfa2bcdf808956e086ed
--- gotwebd/sockets.c
+++ gotwebd/sockets.c
{
int u_fd = -1;
mode_t old_umask, mode;
+ int flags = SOCK_STREAM | SOCK_NONBLOCK;
- u_fd = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK| SOCK_CLOEXEC, 0);
+#ifdef SOCK_CLOEXEC
+ flags |= SOCK_CLOEXEC;
+#endif
+
+ u_fd = socket(AF_UNIX, flags, 0);
if (u_fd == -1) {
log_warn("%s: socket", __func__);
return -1;