Skip to content

Instantly share code, notes, and snippets.

Theo Schlossnagle postwait

Block or report user

Report or block postwait

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:a2483861c6e7557560c6be0c1b6855f6
diff --git a/lptree.c b/lptree.c
index 6973aac..36f301e 100644
--- a/lptree.c
+++ b/lptree.c
@@ -7,6 +7,7 @@
#include <limits.h>
#include <string.h>
#include <stdlib.h>
+#include <pthread.h>
View gist:4b6e983544378bdb07ad94bdd611374f
diff --git a/src/utils/mtev_log.c b/src/utils/mtev_log.c
index 9fead3e..658d5db 100644
--- a/src/utils/mtev_log.c
+++ b/src/utils/mtev_log.c
@@ -475,6 +475,16 @@ void asynch_log_ctx_free(asynch_log_ctx *tf) {
free(tf);
}
+static void
+asynch_logio_drain(asynch_log_ctx *actx) {
View gist:b589da4e5c0d993b5941735253bf0899
; ssh garage.fabric.home.l42.org -lroot sliver
OmniOS 5.11 omnios-33c53a8 February 2016
root@garage:/root# zoneadm list -v
ID NAME STATUS PATH BRAND IP
0 global running / ipkg shared
1 eye running /zones/eye lipkg excl
2 tank running /zones/tank lipkg excl
root@garage:/root# /usr/bin/pkg update
Packages to remove: 1
Packages to update: 390
View V
Verifying that +postwait is my blockchain ID. https://onename.com/postwait
View gist:6bc6885fe2cf45b5fd4d
diff --git a/src/modules/fq_driver.c b/src/modules/fq_driver.c
index 52016ea..5636720 100644
--- a/src/modules/fq_driver.c
+++ b/src/modules/fq_driver.c
@@ -229,6 +229,7 @@ noit_fq_submit(iep_thread_driver_t *dr,
if(*payload == 'M' ||
*payload == 'S' ||
*payload == 'C' ||
+ (*payload == 'H' && payload[1] == '1') ||
(*payload == 'F' && payload[1] == '1') ||
View gist:69b063800dcfad329998
#include <stdio.h>
#include <stdlib.h>
static void print_line(char *name, char *name2, char *val) {
char *typename = NULL, *endptr, newval[128];
(void)strtod(val, &endptr);
if(*endptr == '\0') typename = "n";
if(NULL == typename) {
long foo, base = 10;
View gist:9325f3375bd4dfed965d
HttpServerSession::do_io_write+0xb()
HttpSM::state_api_callout+0x2d0()
HttpSM::do_http_server_open+0x268()
HttpSM::set_next_state+0x510()
HttpSM::state_api_callout+0x2d0()
HttpSM::set_next_state+0x248()
HttpSM::do_hostdb_lookup+0x272()
HttpSM::set_next_state+0xd9f()
HttpSM::state_api_callout+0x2d0()
HttpSM::state_cache_open_read+0x188()
View gist:d40e712e9575ff93ba5f
.SUFFIXES: .lo
include Makefile.version
CC=gcc
LD=gcc
LN_S=ln -s
COPT=-O5
TAR=tar
PREFIX=/usr/local
View gist:ef566846909b18841b66
[epoll]
7f98ab2316da18bdec16f363a24fffa33594b4f2
31c8acea680780c5223a2dd598f57536a0709f5d
ed5eb5431dd90bfbd4f7846c63abf835255b336a
3007704e69081040c95079acf761911cf477cba3
471f1f3ef02e25a84d7c36c857ed260ae2b7ac99
[devpoll fix]
3be4875ef74a065fc23b0ef8c8749f61ec1aa984
View gist:1a2cae20da0f6defd65e
diff --git a/src/eventer/eventer_epoll_impl.c b/src/eventer/eventer_epoll_impl.c
index bd38f02..5945854 100644
--- a/src/eventer/eventer_epoll_impl.c
+++ b/src/eventer/eventer_epoll_impl.c
@@ -275,14 +275,17 @@ static int eventer_epoll_impl_loop() {
__sleeptime = eventer_max_sleeptime;
+ gettimeofday(&__now, NULL);
eventer_dispatch_timed(&__now, &__sleeptime);
You can’t perform that action at this time.