Twitter Bootstrap 3.1 has been released just a few days ago. This new version brings improvements in every areas from documentation and examples to build process and SASS support. It’s also the first release under the MIT License which will allow GPL'ed projects (like Drupal) to include Bootstrap. As always the release is welcomed by an awesome video, so you better check it out.

To celebrate this release, Octostrap3 has been updated. It include now Bootstrap 3.1, the patches provided in the setup have been updated for the latest Octopress version and gist integration has been improved. Here is a preview of what gist should look like now:

(0001-make_inet_socket-Use-SO_NOSIGPIPE-when-creating-a-cl.patch)

download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 59318158e58c0414ead9238126d2a7743a67e29e Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Fri, 17 Jan 2014 12:06:41 +0100
Subject: [PATCH] make_inet_socket(): Use SO_NOSIGPIPE when creating a client
 socket.

  We have to check for error when sending anyway, so we'll check for
  EPIPE.

  Before this patch `rspamc stat` fail when it cannot connect to the
  controller: it dies to SIGPIPE because the socket is fcntl O_NONBLOCK
  and we ignore when connect(2) says EINPROGRESS.
---
 src/util.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util.c b/src/util.c
index 4a88bb1..8f5fdc1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -124,6 +124,8 @@ make_inet_socket (gint type, struct addrinfo *addr, gboolean is_server, gboolean
          r = bind (fd, cur->ai_addr, cur->ai_addrlen);
      }
      else {
+            /* we will check for EPIPE when sending data */
+            setsockopt (fd, SOL_SOCKET, SO_NOSIGPIPE, (const void *)&on, sizeof (gint));
          r = connect (fd, cur->ai_addr, cur->ai_addrlen);
      }

-- 
1.8.5.2

Enjoy !

Comments