Commit Graph

98 Commits

Author SHA1 Message Date
Steve Dee
e7f6270864 Rejigger boot sequence
The calls to u2_raft_work were effectless since the log hasn't been
initialized by that point.
2014-03-07 13:45:31 -08:00
Steve Dee
d045f31f23 Rejigger the event loop again 2014-03-06 08:59:20 -08:00
Gavin Whelan
c85fd1fe35 Fixed Linux specific bug causing lack of stack overflow traces. 2014-03-04 14:48:59 -08:00
Steve Dee
edc28b9ba7 Get new event loop working with checkpoints
Modifying u2_reck is a bad idea in the face of checkpoints. Just stick
everything on roe. This actually cleans up the logic a bit -- we can
execute non-core-modifying actions immediately, rather than on the next
tick.
2014-02-25 12:18:18 -08:00
Steve Dee
d7e4c46150 Revert "Revert "Merge remote-tracking branch 'urbit/master' into master""
This reverts commit dc6f72fa0a8ff2097b1e9c900ebec444c0d4c24f.
2014-02-25 12:18:07 -08:00
Steve Dee
de5048e895 Revert "Merge remote-tracking branch 'urbit/master' into master"
This reverts commit d52d2835b96f89e7ebbe5392c99f1483d165ee0b, reversing
changes made to 58838ea246e52c064719edc56e29b6a1ba713fdf.

Conflicts:
	Makefile
2014-02-24 11:27:57 -08:00
Steve Dee
9b992ae438 Merge remote-tracking branch 'urbit/master' into master
Conflicts:
	v/loop.c
2014-02-24 10:45:10 -08:00
C. Guy Yarvin
4e42621b93 Add gc in restore. 2014-02-17 22:29:23 -08:00
Steve Dee
e0e37cc569 Splinter disk persistence and reck stuff back out 2014-02-17 18:21:24 -08:00
Steve Dee
6182bd7d14 New event loop working, super rough cut 2014-02-14 15:15:38 -08:00
Steve Dee
27b50018a4 More loop -> raft, add u2_raft_boot 2014-02-12 17:27:09 -08:00
Steve Dee
5db81ccab7 Trivial fixups 2014-02-12 11:50:05 -08:00
Steven Dee
53735a8b33 Fixes to our hi/lojack logic
This doesn't actually fix the prompt-eating bug, but it sure looks like
it ought to, doesn't it?
2014-02-12 18:06:49 +00:00
Steve Dee
0ccaadd10b WIP raft single instance
Shove all our disk stuff crudely into raft.c.
2014-02-11 17:14:25 -08:00
Steve Dee
28fe4ec482 WIP rafty loop.c
_lo_save() sticks events on roe for processing in later calls to
_lo_work().
2014-02-11 13:13:30 -08:00
Steve Dee
580a7323f4 WIP Make _lo_work rafty
Carts are now batches of events waiting to be or just recently
persisted. _lo_work calls u2_reck_kick on the last batch of events,
removes every batch that's been through Raft, and then prepares the next
batch.

TODO make _lo_punk et al stick things on roe

TODO move disk persistence to raft.c

TODO raft_push: lo_open / mark / lo_shut
2014-02-11 12:57:41 -08:00
Steve Dee
5a16660af1 Skeleton for raft 2014-02-10 16:07:09 -08:00
C. Guy Yarvin
a5fee9936b Various fixes and improvements. 2014-01-27 11:09:56 -08:00
Curtis Yarvin
ae489b86da Quick 64-bit fixes. 2014-01-27 18:48:55 +00:00
C. Guy Yarvin
997c32f192 Various fixes and improvements. 2014-01-20 13:50:54 -08:00
Steve Dee
ed09e5d12e Bring up listeners after boot 2014-01-17 00:12:05 -08:00
Steve Dee
97eeb27d41 Batch pier creation 2014-01-15 17:41:30 -08:00
C. Guy Yarvin
6f1ad34345 Fix interrupt crash. 2014-01-07 10:43:50 -08:00
C. Guy Yarvin
3a59c5f0d4 Merge branch 'master' of github.com:urbit/urbit 2014-01-06 12:49:08 -08:00
C. Guy Yarvin
a259e04a28 Various fixes and improvements. 2014-01-03 23:28:16 -08:00
Steve Dee
64a1d9a506 Update comment with current blip 2013-12-31 21:49:54 +01:00
Steven Dee
f2a839426b Ye olde whitespace cleanup part 2
sed -i, glanced at.
2013-12-18 13:17:47 -08:00
Steve Dee
d9e445c2ec Poll in u2_lo_loop
This fixes daemon mode.

Strictly speaking, the _lo_poll call is only necessary when we're
in daemon mode, but having our network code randomly work as a side
effect of polling for terminal input seems like a poor life choice,
so we do it unconditionally.
2013-12-17 13:02:32 -08:00
Steve Dee
a75e974af9 Fix remaining non-libuv memory leaks
The only leaks remaining are in libuv's fsevents code. They could
be our fault, but it's unlikely.
2013-12-16 18:36:32 -08:00
Steven Dee
52385c8276 @ud format event counter 2013-12-11 23:30:46 -05:00
C. Guy Yarvin
376a5ecbaa Really long timerz. 2013-11-26 18:16:17 -08:00
C. Guy Yarvin
2d370a347e Lengthen timer to 30s. Highly suspect. 2013-11-26 18:04:55 -08:00
C. Guy Yarvin
4ad3ce5bf7 Merge branch 'master' of github.com:urbit/urbit 2013-11-22 12:48:36 -08:00
C. Guy Yarvin
3d7bb85a1c Tiny change. 2013-11-22 12:45:37 -08:00
cgyarvin
85435d25e9 Merge pull request #88 from twopir/master
bail early when pier exists
2013-11-21 10:18:29 -08:00
C. Guy Yarvin
f592b16a59 Combat wake loops. 2013-11-20 22:43:12 -08:00
Pi
6d9007cdb2 bail early when pier exists
Because I'm tired of waiting for keygen to find out my pier already exists.
2013-11-20 13:25:53 -08:00
C. Guy Yarvin
8d779710c3 Fix playback bug for forwarded packets. 2013-11-18 14:31:51 -08:00
C. Guy Yarvin
538d60361a Correct lame:wake bug in a rather crude way. 2013-11-13 17:48:21 -08:00
C. Guy Yarvin
9b72ce7feb Show passcode file on load. 2013-11-13 11:45:17 -08:00
C. Guy Yarvin
33430d9fbc Fix bus errors with proper truncation. 2013-11-13 10:57:43 -08:00
C. Guy Yarvin
9c51f2cc10 Eliminate deadly "lame" printf. 2013-11-12 19:58:04 -08:00
C. Guy Yarvin
a4baea40fd Fix a bunch of memory leaks and stuff. 2013-11-11 23:09:11 -08:00
C. Guy Yarvin
91fe182f81 Various fixes and improvements... 2013-11-08 15:37:38 -08:00
Steven Dee
324c6a235d Remove most instances of strcpy and sprintf
OpenBSD whines about these and recommends using strlcpy / snprintf
instead. Since strlcpy isn't quite universal yet, we use strncpy instead
and be careful about terminating the string. We could implement a
portable strlcpy in terms of strncpy, but that'd add another function to
the namespace.

Yes, usually the length is obviously bounded. Still, pretending
strcpy/sprintf don't exist seems like a great strategy.

N.B. there are still a few occurrences of strcpy and sprintf under f/
and in libuv, but I don't have time to tackle them right now.
2013-10-30 15:25:22 -04:00
Curtis Yarvin
6d091f5e07 Continuity breach, flag day. 2013-10-11 18:00:22 +00:00
Curtis Yarvin
ccccea982c More printfs... 2013-10-08 18:26:59 +00:00
Christian Carter
3af3130bdc Cleaning up old code 2013-09-28 13:21:18 -07:00