Con Kolivas
|
c371f9da91
|
Add command line parameter to set passthrough mode
|
10 years ago |
Con Kolivas
|
6b61ae5034
|
Put a sanity check on the length of the btcsig
|
10 years ago |
Con Kolivas
|
16d898c7a7
|
Don't handle keyboard based signals by children processes
|
10 years ago |
Con Kolivas
|
9b9c992569
|
Mask further signals from child processes once received and exit
|
10 years ago |
Con Kolivas
|
b783ae992a
|
Deref pthreads after cancelling them
|
10 years ago |
Con Kolivas
|
dd13d356c2
|
Check threads exist before trying to cancel or join them
|
10 years ago |
Con Kolivas
|
d728f7d863
|
Inherit pids of processes that are forked later
|
10 years ago |
Con Kolivas
|
92c67ab289
|
Provide a restart command which does a handover to an new binary with the same arguments
|
10 years ago |
Con Kolivas
|
1830df684f
|
Put a sanity check on kill calls to make sure we are not sending them to pid 0
|
10 years ago |
Con Kolivas
|
30e36979ca
|
Revert inappropriate commenting out of code
|
10 years ago |
Con Kolivas
|
73e807a6b6
|
Don't extract sockaddr when we have an old fd
|
10 years ago |
Con Kolivas
|
61bc8628f3
|
Implement a handover option which allows ckpool to inherit the socket from a running instance before shutting it down keeping miners talking to the existing connection
|
10 years ago |
Con Kolivas
|
a832b64006
|
Fix getfd function to really send a full struct msghdr returning a new fd to copy sockets across processes
|
10 years ago |
kanoi
|
7698d1880b
|
convert DB time to UTC correctly, make ckdbYYYYMMDDHH.log UTC and make time use it's own buffer
|
10 years ago |
Con Kolivas
|
5d266a0faa
|
Use cmdmatch in connector and ckpool
|
10 years ago |
Con Kolivas
|
dc3dd18e92
|
Add a slow 1s timedwait to ckmsg_queue parsing to not miss wakeups
|
10 years ago |
Con Kolivas
|
fc1d956f37
|
Make a per-process logger allowing logging to be line buffered yet asynchronous
|
10 years ago |
kanoi
|
c1de7286d7
|
ckpool - add timestamps to screen log
|
10 years ago |
Con Kolivas
|
dd056cd030
|
Provide an option to run ckpool standalone without ckdb
|
10 years ago |
Con Kolivas
|
1e81ac7887
|
Convert command line to accept long options that are also self documenting with -h
|
11 years ago |
kanoi
|
fb3eeac022
|
ckpool - add json_str NULL to error detection
|
11 years ago |
kanoi
|
e51a5a7afd
|
ckpool - attempt to identify json error passed to _json_ckdb_call
|
11 years ago |
ckolivas
|
34d77bd3b9
|
Make significant floating point errors fatal to avoid subtle bugs being missed
|
11 years ago |
ckolivas
|
61e8c46ee5
|
Don't fclose the log file on cleanup in case we still send mesages to the log file. The OS will close it on shutdown anyway.
|
11 years ago |
ckolivas
|
a092fd91a4
|
Forgot to set return value in read_socket_line
|
11 years ago |
ckolivas
|
e789416b17
|
Fix unused variable warnings
|
11 years ago |
ckolivas
|
b6e9d18bfc
|
Handle signal interruptions on all poll and select calls
|
11 years ago |
ckolivas
|
a8eee6f0a3
|
We cannot intercept signal 9
|
11 years ago |
Con Kolivas
|
b289046ffe
|
Demote the socket file exists message to notice level
|
11 years ago |
Con Kolivas
|
e40128a2da
|
Allow the loglevel to be changed on the fly
|
11 years ago |
Con Kolivas
|
93ecc3a5c8
|
Convert the authoriser and share processor to using the generic ckmsg queues and fix the data passed to the queue function
|
11 years ago |
ckolivas
|
e8c47e29fa
|
Move generic ckmsgq functions to ckpool.c to allow ckp to be included
|
11 years ago |
ckolivas
|
1874d6e136
|
Send a message back from the listener under all circumstances
|
11 years ago |
ckolivas
|
10baacbeee
|
Use only one fprintf in console logging to minimise risk of overlap
|
11 years ago |
ckolivas
|
c80af8bc56
|
Remove file log flushing from within the flock to not delay other code waiting on logging
|
11 years ago |
ckolivas
|
2b9062b44e
|
Only show errno if it's not zero
|
11 years ago |
Con Kolivas
|
d83a6cdcde
|
Realloc the correct variable
|
11 years ago |
Con Kolivas
|
4e02dd4213
|
Fix missing break in switch
|
11 years ago |
Con Kolivas
|
924b86b700
|
Create ckdb sockdir if it's not present and change permissions to 750
|
11 years ago |
Con Kolivas
|
91e2b3c942
|
Remove the method from the command we send to ckdb and put it at the beginning of the message
|
11 years ago |
Con Kolivas
|
645b94c949
|
Log all ckdb requests to the rotating ckdb log
|
11 years ago |
Con Kolivas
|
09f0586243
|
Add all messages that we don't need to wait for the ckdb response to a separate thread message queue and cache them if ckdb is unresponsive
|
11 years ago |
Con Kolivas
|
0ce603c9e5
|
Change message to ckdb to id.
|
11 years ago |
Con Kolivas
|
333d05fb3a
|
Create a json sending wrapper for ckdb and fix int64 usage in packed json
|
11 years ago |
Con Kolivas
|
1debfd1f45
|
Send auth and share messages to ckdb
|
11 years ago |
Con Kolivas
|
73599ea10d
|
Add a function for sending a message to ckdb and getting its response
|
11 years ago |
Con Kolivas
|
5f5ef3c712
|
Parse and store the socket directory and name for ckdb
|
11 years ago |
Con Kolivas
|
ebb932691a
|
Allow group id to be set for unix sockets with -g command line parameter
|
11 years ago |
Con Kolivas
|
fa8b0b0b6f
|
Unnecessary sleep now
|
11 years ago |
Con Kolivas
|
badfb12da2
|
Do not try to send messages from the main signal handler to the children processes since they'll detect main disappearing and do not try to pthread join a dead thread
|
11 years ago |