Commit Graph

40 Commits

Author SHA1 Message Date
Ian Gulliver
87f82b0327 Keep fd 2 open as our log fd, so other things that write there (e.g. assert()) work sanely. 2016-03-09 13:06:26 -08:00
Ian Gulliver
b455826db2 Switch to signalfd for SIGHUP 2016-03-08 23:04:20 -08:00
Ian Gulliver
d5eb4a919e Initialize server before resolve, since server forks and resolve starts a thread. 2016-03-08 11:28:21 -08:00
Ian Gulliver
e5af92c331 Add --detach. Add multi-pass flag parsing that lets us get things in the right order. 2016-03-08 11:26:39 -08:00
Ian Gulliver
70ac401a23 Add missing help 2016-03-07 21:42:51 -08:00
Ian Gulliver
eb89dafd0d Add --log-timestamps 2016-03-07 20:12:35 -08:00
Ian Gulliver
602c6f729b Add log rotation on SIGHUP 2016-03-07 16:14:35 -08:00
Ian Gulliver
ff4f4da608 deheader cleanup 2016-03-07 15:19:00 -08:00
Ian Gulliver
46696933aa Add --log-file 2016-03-07 11:26:25 -08:00
Ian Gulliver
6480a960fa Switch to standard logging framework 2016-03-05 22:54:26 -08:00
Ian Gulliver
45abe06467 Add hop limit to json and proto formats. 2016-03-03 22:00:02 -08:00
Ian Gulliver
455bee2676 Use some magic devices to prevent users hurting themselves with --file-read=/dev/stdin as we re-use fd 0 2016-03-03 21:27:16 -08:00
Ian Gulliver
939b3b1851 Add send-receive channels 2016-03-03 18:28:34 -08:00
Ian Gulliver
e124977713 File open retries. 2016-03-02 18:49:25 -08:00
Ian Gulliver
58a8576da8 Add --exec-{send,receive} 2016-02-28 15:53:55 -08:00
Ian Gulliver
e86ea97671 --file-{read,write,append} 2016-02-28 13:08:04 -08:00
Ian Gulliver
071613d061 Use static greeting buffers. 2016-02-27 16:23:26 -08:00
Ian Gulliver
19a9d498bd Enable -Weverything, fix a ton of bugs. 2016-02-25 23:37:37 -08:00
Ian Gulliver
3235211bc2 More sensible cleanup ordering. 2016-02-25 16:48:51 -08:00
Ian Gulliver
4f14845c75 Rename --dump to --stdout. Add --stdin. 2016-02-25 15:12:16 -08:00
Ian Gulliver
46fd0c3c8b Tear down resolver before others. 2016-02-25 11:57:23 -08:00
Ian Gulliver
1635534243 Switch from sketchy dup() juggling to callbacks to retry outgoing connection. 2016-02-24 20:15:09 -08:00
Ian Gulliver
c70886e55c Proto parsing working. 2016-02-23 19:46:42 -08:00
Ian Gulliver
d2e521e90c json input support, some shutdown fixes. json needs cleanup. 2016-02-23 13:49:23 -08:00
Ian Gulliver
49edb43232 Close stdout and stderr before exit, to make valgrind output easier reading. 2016-02-23 12:11:07 -08:00
Ian Gulliver
ab6b8cd5e9 Track and clean up receive objects. 2016-02-23 12:08:53 -08:00
Ian Gulliver
289dcdbb54 Change resolution to use a single resolve thread, and to clean up after itself. 2016-02-23 11:53:17 -08:00
Ian Gulliver
bc9219b4a8 Split server out. 2016-02-22 21:53:25 -08:00
Ian Gulliver
2ce2ed5bf5 Split out packet. Delete common. 2016-02-22 16:58:13 -08:00
Ian Gulliver
b5ab0cb0a6 Split out peer 2016-02-22 16:49:43 -08:00
Ian Gulliver
f36642b823 Split out hex 2016-02-22 16:36:27 -08:00
Ian Gulliver
d6a629fa7e Switch to an internal implementation of uuid generation, so we can use the randomness pool. 2016-02-22 16:27:44 -08:00
Ian Gulliver
16685b8d05 Split out rand 2016-02-22 14:45:18 -08:00
Ian Gulliver
835a144d6e Genericize the rand code. 2016-02-21 15:56:07 -08:00
Ian Gulliver
6384e0f20d Wakeup actually working (probably), add delay calculator. 2016-02-21 15:51:38 -08:00
Ian Gulliver
ec79ba0da1 Much closer to complete cleanup before exit. 2016-02-21 13:57:35 -08:00
Ian Gulliver
71413f97e5 More structure for wakeup. 2016-02-20 23:56:40 -08:00
Ian Gulliver
9df778a88a Factor out opts parsing, clean up shutdown. 2016-02-20 23:22:00 -08:00
Ian Gulliver
bca84394ce Remove airspy_adsb, as it's no longer used by upstream 2016-02-18 17:00:33 -08:00
Ian Gulliver
cf6eef6118 Move adsbus into its own dir. 2016-02-18 09:36:53 -08:00