Con Kolivas
|
86e70edfbc
|
Make all child processes ping the parent process at regular intervals and then die if it has disappeared. Do not attempt to send unix messages to dead processes and abort instantly on socket EINTR
|
11 years ago |
Con Kolivas
|
b4e6aef470
|
Log all output to a logfile, display all warnings, and use locking to prevent overlapped messages
|
11 years ago |
Con Kolivas
|
f48558d2b5
|
Detach child processes from the tty leaving only the main process to talk to it and exit all processes in a consistent way with more information on termination
|
11 years ago |
Con Kolivas
|
923a4abe59
|
Don't bother sending the listener the shutdown message since the signal handler will kill off the main thread
|
11 years ago |
Con Kolivas
|
da435ac22b
|
Handle process exiting in the watchdog by shutting down
|
11 years ago |
Con Kolivas
|
8af64746bf
|
Change config format to take url auth and pass for both btcd and proxy and choose which to use in the generator based on proxy bool
|
11 years ago |
Con Kolivas
|
0256ad517b
|
Accept an array of entries for bitcoinds and take initial values for proxying
|
11 years ago |
Con Kolivas
|
78c1b2dfda
|
Make process instances an array within the ckpool struct allowing us to enable only those we need when we add more modules to future code
|
11 years ago |
Con Kolivas
|
08326b2d09
|
More explicit message
|
11 years ago |
Con Kolivas
|
8631f33809
|
Accept ping requests on the various unix sockets
|
11 years ago |
Con Kolivas
|
686d6da799
|
Send shutdown messages to the listener thread on watchdog shutdown or signal handling
|
11 years ago |
Con Kolivas
|
75db39209f
|
Abort trying to relaunch processes if we're relaunching them too fast
|
11 years ago |
Con Kolivas
|
7ab22aa1ec
|
Consider other modes of generator failure terminal and shut down
|
11 years ago |
Con Kolivas
|
28f3f6cb2e
|
Shut down more gracefully on startup failure
|
11 years ago |
Con Kolivas
|
78fbb4e91d
|
Make logging directory configurable, and store share logs by height/workid and totals for the pool as well
|
11 years ago |
Con Kolivas
|
55045434f1
|
Make the start and minimum diff configurable and set them to 42 and 1 by default
|
11 years ago |
Con Kolivas
|
a615b56d76
|
Install signal handlers which push the signal to the top process which will try to gracefully shut down each child process
|
11 years ago |
Con Kolivas
|
78a3121668
|
Add signal handlers to enable terminate requests to end cleanly allowing profile generation
|
11 years ago |
Con Kolivas
|
32f51fdceb
|
Fix missing break
|
11 years ago |
Con Kolivas
|
d8bb3380ae
|
Add option to kill off old instance
|
11 years ago |
Con Kolivas
|
c274457caa
|
Add loglevel support with default of notice level, configurable on command line
|
11 years ago |
Con Kolivas
|
fd2c51bed3
|
Restructure includes to only have ckpool instance and proc instance in ckpool.h
|
11 years ago |
Con Kolivas
|
fefe13e929
|
Check for no response in the listener thread and allow 1 minute timeouts for receiving messages
|
11 years ago |
Con Kolivas
|
0b08bbb43e
|
Add submission of blocksolves
|
11 years ago |
Con Kolivas
|
126c7964e2
|
Add a json parser to the stratum receiver that will generate return messages
|
11 years ago |
Con Kolivas
|
55b8e8424a
|
Add connector process which will process all remote communications
|
11 years ago |
Con Kolivas
|
4ab9120e61
|
Handle failed generator startup as a fatal startup, sending listener a shutdown message and adding shutdown parsing
|
11 years ago |
Con Kolivas
|
2b1f9510cf
|
Add a block update thread that polls bitcoind regularly for the latest hash and handle failed json requests as closed sockets
|
11 years ago |
Con Kolivas
|
8f0958bbfb
|
Add some default parameters to make polling intervals configurable
|
11 years ago |
Con Kolivas
|
a723e70f51
|
Remove signal handlers and use a watchdog thread to watch for dead child processes and restart them
|
11 years ago |
Con Kolivas
|
0d3d2434be
|
Use name for socket directory and add more config options
|
11 years ago |
Con Kolivas
|
6f1838536c
|
Create a stratifier thread that updates the data from the gbt template regularly and receives other requests
|
11 years ago |
Con Kolivas
|
945c730447
|
Add and test a getbase function of the generator process
|
11 years ago |
Con Kolivas
|
6f679e1cf4
|
Create the main read parse loop for the generator and send it a test message
|
11 years ago |
Con Kolivas
|
194c8e42f3
|
Begin parsing of a config file, storing btcd url, auth and pass
|
11 years ago |
Con Kolivas
|
15170c79d2
|
Original sighandlers don't actually come in useful here
|
11 years ago |
Con Kolivas
|
219c49817e
|
Install the signal handlers only for the master process and try to clean up in consistent fashion with handler
|
11 years ago |
Con Kolivas
|
f864e1176c
|
Install signal handlers and store the originals in the ckpool_t
|
11 years ago |
Con Kolivas
|
2f7f3ecad4
|
Store the pid in the proc instance structure and try to clean up on processes exiting
|
11 years ago |
Con Kolivas
|
10c2b48b4f
|
Rename processes and change generator function to suit pi model
|
11 years ago |
Con Kolivas
|
2c9653d138
|
Add a process structure to contain all variables likely to be used by spawned processes
|
11 years ago |
Con Kolivas
|
9544d280e3
|
Launch generator process and abstract out more of the per process files created
|
11 years ago |
Con Kolivas
|
e5d9d0a609
|
Use no global variables and append / to all directory names
|
11 years ago |
Con Kolivas
|
8a23b0bb28
|
Write the pid to a temporary file
|
11 years ago |
Con Kolivas
|
41bc9865c9
|
Begin basic main function parsing parameters, create a directory for sockets and create a listener thread
|
11 years ago |
Con Kolivas
|
ef93d2760e
|
Add some commonly used functions to a common header and check headers in configure.ac
|
11 years ago |
Con Kolivas
|
2f961cc489
|
Add basic library creation rules
|
11 years ago |
Con Kolivas
|
6e2edf7ee4
|
Basic build infrastructure
|
11 years ago |