This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool | |
BindingInstance::construct() | |
{ | |
ink_release_assert(this->lua == nullptr); | |
if ((this->lua = luaL_newstate())) { | |
luaL_openlibs(this->lua); | |
// Push a pointer to ourself into the well-known registry key. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# interacts with the Sparkpost reporting API. | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# HUBOT_SPARKPOST_API_TOKEN your API token with reporting privileges | |
# HUBOT_SPARKPOST_TIMEZONE the timezone (default America/New_York) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/modules-lua/noit/module/resmon.lua b/src/modules-lua/noit/module/resmon.lua | |
index d23388f..9eb5e5a 100644 | |
--- a/src/modules-lua/noit/module/resmon.lua | |
+++ b/src/modules-lua/noit/module/resmon.lua | |
@@ -325,9 +325,9 @@ function initiate(module, check) | |
-- this is handled later as we need our challenge. | |
client = HttpClient:new(callbacks) | |
- rv, err = client:connect(reverse_str, port, use_ssl) | |
+ rv, err = client:connect(reverse_str, port, use_ssl, headers.Host) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/time.h> | |
#include <pthread.h> | |
#include <stdlib.h> | |
void log_results(const char *name, int nt, double nops, double tdiff) { | |
printf(" === %s (%d threads, %0.0f total ops) ===\n", name, nt, nops); | |
printf("\tTotal time: %0.2f ms\n", tdiff*1000); | |
printf("\tTime per op: %0.1f ns\n", 1000000000.0 * (tdiff/nops)); | |
printf("\tOps per sec: %0.0f ops\n", nops/tdiff); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc | |
index f77287e..454ccf1 100644 | |
--- a/iocore/net/SSLUtils.cc | |
+++ b/iocore/net/SSLUtils.cc | |
@@ -801,7 +801,7 @@ SSLUtils_lua_ssl_store_ssl_context(lua_State* L) | |
LUAGETF(ssl_key_name); | |
LUAGETF(ssl_ca_name); | |
LUAGETF(ssl_cert_name); | |
- // TODO: ticket_key_filename stuff should be popped here I think | |
+ LUAGETF(ticket_key_filename); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <port.h> | |
#include <sys/lwp.h> | |
#include <pthread.h> | |
lwpid_t other = 0; | |
int port_fd = -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 0t38627::pid2proc | ::walk thread | ::findstack | |
stack pointer for thread ffffff235df63b80: ffffff010212fdc0 | |
[ ffffff010212fdc0 _resume_from_idle+0xf1() ] | |
ffffff010212fdf0 swtch+0x141() | |
ffffff010212fe70 cv_wait_stop+0x11e() | |
ffffff010212fee0 closeandsetf+0x2fd() | |
ffffff010212ff00 close+0x13() | |
ffffff010212ff10 sys_syscall+0x17a() | |
stack pointer for thread ffffff2317b53780: ffffff00fd676bb0 | |
[ ffffff00fd676bb0 _resume_from_idle+0xf1() ] |