Commit Graph

16524 Commits (5ed773c6434c4e992898720d3033ce14e484a68b)

Author SHA1 Message Date
Joey Hess 8707b9f9d3 clena up the sitemap 2011-12-06 13:20:05 -04:00
Joey Hess a165790ba7 typo 2011-12-05 15:19:25 -04:00
Joey Hess 2c7a8bd684 Merge branch 'master' of ssh://git.ikiwiki.info 2011-12-05 15:17:53 -04:00
Joey Hess aa226bbb6b Consume all stdin when rcs_receive short-circuits, to avoid git SIPIPE race.
We had a weird problem where, after moving to a new, faster server,
"git push" would sometimes fail like this:

Unpacking objects: 100% (3/3), done.
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

What turned out to be going on was that git-receive-pack was dying due
to an uncaught SIGPIPE. The SIGPIPE occurred when it tried to write to
the pre-receive hook's stdin. The pre-receive hook, in this case, was
able to do all the checks it needed to do without the input, and so did
exit(0) without consuming it.

Apparently that causes a race. Most of the time, git forks the hook,
writes output to the hook, and then the hook runs, ignores it, and exits.
But sometimes, on our new faster server, git forked the hook, and it
ran, and exited, before git got around to writing to it, resulting in
the SIGPIPE.

write(7, "c9f98c67d70a1cfeba382ec27d87644a"..., 100) = -1 EPIPE (Broken
pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---

I think git should ignore SIGPIPE when writing to hooks. Otherwise,
hooks may have to go out of their way to consume all input, and as I've
seen, the races when they fail to do this can lurk undiscovered.

I have written to the git mailing list about this.

As a workaround, consume all stdin before exiting.
2011-12-05 15:17:01 -04:00
http://kerravonsen.dreamwidth.org/ 4b99befd36 a different alternative 2011-12-04 19:38:51 -04:00
http://kerravonsen.dreamwidth.org/ 6f8398fbb9 consider alternatives? 2011-12-04 19:30:46 -04:00
https://www.google.com/accounts/o8/id?id=AItOawk_MMtLPS7osC5MjX00q2ATjvvXPWqm0ik 6168baf0e0 Added a comment 2011-12-04 10:03:55 -04:00
http://smcv.pseudorandom.co.uk/ 5c8870aa6a Added a comment 2011-12-04 09:37:27 -04:00
http://hendry.iki.fi/ 088ac167c5 2011-12-04 04:06:26 -04:00
http://hendry.iki.fi/ 13b0361414 suggest sundown 2011-12-04 03:44:06 -04:00
http://hendry.iki.fi/ 90a351d360 add wishlist tag to hopefully get the attention of Joey 2011-12-04 03:40:00 -04:00
http://hendry.iki.fi/ 1b5d460363 2011-12-04 03:38:47 -04:00
http://kerravonsen.dreamwidth.org/ 0dcb6f6539 Added a comment 2011-12-03 15:45:06 -04:00
https://www.google.com/accounts/o8/id?id=AItOawk_MMtLPS7osC5MjX00q2ATjvvXPWqm0ik 95174ba9a3 2011-12-03 14:10:23 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 0488cb312a removed 2011-12-03 13:26:19 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 525377f001 Added a comment 2011-12-03 13:25:58 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 46df230be7 removed 2011-12-03 13:25:06 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 8c03350301 Added a comment 2011-12-03 13:21:56 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 c24d8afd15 Added a comment 2011-12-03 13:21:41 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 ee052c5289 removed 2011-12-03 13:20:50 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 0df0d02334 Added a comment 2011-12-03 13:20:17 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 3f6bc63aa5 Added a comment 2011-12-03 13:17:57 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 50f1b82eb3 2011-12-03 13:16:29 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlkQOG_UxmAVOjXBQJLpiBmBWXEiTL9PYw 8bf3e1b284 2011-12-02 14:36:19 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlkQOG_UxmAVOjXBQJLpiBmBWXEiTL9PYw b4d54c155a 2011-12-02 14:23:07 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlkQOG_UxmAVOjXBQJLpiBmBWXEiTL9PYw cd76576d4d 2011-12-02 14:11:36 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlkQOG_UxmAVOjXBQJLpiBmBWXEiTL9PYw 5124822527 2011-12-02 01:03:37 -04:00
Joey Hess 45c8fad7f0 add news item for ikiwiki 3.20111107 2011-11-30 16:53:08 -04:00
Joey Hess 3b40790041 releasing version 3.20111107 2011-11-30 16:52:30 -04:00
Joey Hess f55931dd76 Merge branch 'master' of ssh://git.ikiwiki.info 2011-11-30 16:49:18 -04:00
Joey Hess d13e86a6cb add missing license text 2011-11-30 16:43:34 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnXybLxkPMYpP3yw4b_I6IdC3cKTD-xEdU 08615fd3e8 Added a comment 2011-11-30 16:42:55 -04:00
Joey Hess 6cadcacffd apply Postel's law 2011-11-30 16:25:17 -04:00
Joey Hess df8f87770e thoughts 2011-11-30 16:09:09 -04:00
Joey Hess 0a7264b227 close 2011-11-30 16:00:45 -04:00
Joey Hess bbfd4bebf5 formatting 2011-11-30 15:53:37 -04:00
Joey Hess 4cb343f348 graphviz: Support wikilinks embedded in the graph.
(Sponsored by The TOVA Company.)
2011-11-30 15:47:13 -04:00
Joey Hess 997116f160 store imagemap in %pagestate, rather than a file
Using a file was sorta not right.

Note that when previewing, %pagestate is not saved, so
it has to rebuild the graph every time until that graph is saved;
then previews can use the cached data until the next time the graph
is changed.

Also note that it's stored in the destpage's pagestate. The imagemap
could vary between a page and an inlined page if wikilinks were supported.
2011-11-30 15:47:12 -04:00
Joey Hess 44863ea234 graphviz: Support urls embedded in the graph, by having graphviz generate an imagemap.
Also, I let preview mode write real files, rather than using data: uri.
Which is ok these days, since ikiwiki tracks files created during
previewing, and cleans them up later.
2011-11-30 15:47:12 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 9936c3ec32 Added a comment: thx 2011-11-30 14:50:51 -04:00
Joey Hess 2615b92fd4 Merge branch 'master' of ssh://git.ikiwiki.info 2011-11-30 12:15:39 -04:00
http://smcv.pseudorandom.co.uk/ 75f538faf4 Added a comment 2011-11-30 12:09:16 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 05cbf0109b Added a comment: comment on my own question 2011-11-30 11:15:21 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnam4a8RtFwaWkKOX2BkA5I7cpGHcFw8E0 aadc0c8230 2011-11-30 11:12:25 -04:00
http://jmtd.net/ 25543d98b7 try a map instead of an inline 2011-11-30 09:39:54 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlqWSY9PNYRysA9vrU-JiQh7-s7q6SOcIE 71974c24bb Chatter 2011-11-30 09:32:03 -04:00
Simon McVittie 9bb6a2de83 revert spam 2011-11-30 10:57:30 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl_wuvPHDhkuMVnEOP5jLrZyd3nnBs8YRw 8ad04fcc98 2011-11-30 06:43:58 -04:00
https://www.google.com/accounts/o8/id?id=AItOawl_wuvPHDhkuMVnEOP5jLrZyd3nnBs8YRw 003cb0b7d6 2011-11-30 06:42:14 -04:00
https://www.google.com/accounts/o8/id?id=AItOawl_wuvPHDhkuMVnEOP5jLrZyd3nnBs8YRw 642e59c729 2011-11-30 06:40:56 -04:00