Commit Graph

208 Commits

Author SHA1 Message Date
Steve Dee
eff8a1ba45 Don't u2z(u2_nul) 2013-12-29 13:57:03 +01:00
Steve Dee
74bae0df22 Partially fix noun leak in daemon mode
Still some regular noun garbage being generated, but it's a bit less now.
2013-12-29 13:07:38 +01:00
C. Guy Yarvin
3855896562 Don't assert on missing files. 2013-12-26 14:35:00 -05:00
Steve Dee
aba13f1120 Output hi/lojacked fprintf in daemon mode 2013-12-19 10:37:01 -08:00
Steve Dee
a94ea80337 Alignment 2013-12-19 10:11:12 -08:00
Steve Dee
6542083861 Don't write \r in daemon mode 2013-12-19 10:10:57 -08:00
Steve Dee
a21336a3a8 hi/lojack ames fprintf 2013-12-19 10:10:11 -08:00
Steve Dee
0066cf7518 Get daemon mode actually working 2013-12-19 09:48:02 -08:00
Steve Dee
89ac00bd6a Write to stdout in daemon mode
Fixes nohup.
2013-12-18 15:21:18 -08:00
Steve Dee
262e9fb984 Remove \r from http notification 2013-12-18 15:13:48 -08:00
Steven Dee
f2a839426b Ye olde whitespace cleanup part 2
sed -i, glanced at.
2013-12-18 13:17:47 -08:00
Steve Dee
573267f05b Fix output in daemon mode 2013-12-18 13:17:47 -08:00
Steve Dee
011f20447c Realistically reintroduce accurate comment
This reverts commit c6e01a7c6ecdcbb2a0848f59b7db6641f0902773.
2013-12-17 16:50:09 -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
Steven Dee
60f68a9fd5 Optimistically removing bogus comment 2013-12-17 18:51:52 +00: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
3d9cda2509 Don't put empty directories in unix-built ankh. 2013-11-29 20:30:17 -08: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
66c4e463e9 Fix some http-parser bugs; clean up dill. 2013-11-13 21:25:24 -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
c489d2dc7d Remove remainder of sprintf & strcpy calls
Note that there are still some in libuv.
2013-11-01 15:10:41 -04:00
Curtis Yarvin
5b4c4437ce Merge branch 'master' of github.com:urbit/urbit 2013-10-31 17:20:57 +00:00
Curtis Yarvin
91adaea16a Fix SO_REUSEPORT issue in linux. 2013-10-31 17:20:42 +00:00
Steven Dee
ef40109ea9 Fix hom_w calculation 2013-10-30 16:59:57 -04: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
C. Guy Yarvin
367838774a Fix broken build. 2013-10-30 11:42:24 -07:00
C. Guy Yarvin
549d090add Various fixes and improvements. 2013-10-30 11:26:51 -07:00
C. Guy Yarvin
25b7ed9a9c Various fixes and improvements. 2013-10-26 20:55:53 -07:00
C. Guy Yarvin
e6441de170 Correctly load original pill after checkpoint failure. 2013-10-23 14:48:14 -07:00
Steven Dee
d51339b885 Don't fork in daemon mode 2013-10-21 14:55:19 -04:00
Steven Dee
b0e2f692ac Exit 0 on successful daemonization 2013-10-21 13:13:53 -04:00
Curtis Yarvin
b0078e4c48 Add initial GC on startup; fix batz handling of %yu. 2013-10-19 06:10:25 +00:00
C. Guy Yarvin
91551d2f5a Changes for libuv bug reproduce. 2013-10-14 11:23:55 -07: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
Steven Dee
1a6f18d09d Consider both FreeBSD and OpenBSD "bsd" 2013-10-07 12:31:41 -04:00
C. Guy Yarvin
ab35a08774 Development "branch" goes back to production. 2013-10-06 00:44:07 -07:00
Curtis Yarvin
6671d85b86 Merge branch 'master' of github.com:urbit/urbit 2013-10-04 22:33:45 +00:00
Curtis Yarvin
323d010724 Fix a memory leak per packet. 2013-10-04 22:33:26 +00:00
David Nadle
abac35c6eb Handle autosave SIGCHLD with no stored pid 2013-10-04 03:07:47 -04:00
C. Guy Yarvin
fdf68275ed Hub before clay/ze refactor. 2013-10-03 13:38:37 -07:00
C. Guy Yarvin
3e0fe1bd0e Merge branch 'master' of github.com:urbit/urbit 2013-10-02 09:41:15 -07:00
C. Guy Yarvin
e7e0842eaa Experiments with fork checkpoint. 2013-10-02 09:40:58 -07:00
Lev Serebryakov
018cfe5eaf Quick'n'dirty port to FreeBSD (checked on FreeBSD 9.2/amd64) 2013-10-02 18:44:22 +04:00
Christian Carter
3af3130bdc Cleaning up old code 2013-09-28 13:21:18 -07:00