git://git.iain.cx/iain
/
nssm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Corrected restart throttling documentation.
[nssm.git]
/
nssm.cpp
diff --git
a/nssm.cpp
b/nssm.cpp
index
3ba473f
..
2933dea
100644
(file)
--- a/
nssm.cpp
+++ b/
nssm.cpp
@@
-1,5
+1,7
@@
#include "nssm.h"
\r
\r
#include "nssm.h"
\r
\r
+extern unsigned long tls_index;
\r
+
\r
/* String function */
\r
int str_equiv(const char *a, const char *b) {
\r
int i;
\r
/* String function */
\r
int str_equiv(const char *a, const char *b) {
\r
int i;
\r
@@
-39,6
+41,9
@@
int main(int argc, char **argv) {
/* Undocumented: "run" is used to actually do service stuff */
\r
if (! str_equiv(argv[1], NSSM_RUN)) exit(usage(2));
\r
\r
/* Undocumented: "run" is used to actually do service stuff */
\r
if (! str_equiv(argv[1], NSSM_RUN)) exit(usage(2));
\r
\r
+ /* Thread local storage for error message buffer */
\r
+ tls_index = TlsAlloc();
\r
+
\r
/* Register messages */
\r
create_messages();
\r
\r
/* Register messages */
\r
create_messages();
\r
\r