about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-08-08 20:55:44 -0400
committerJune McEnroe <programble@gmail.com>2017-08-08 20:55:44 -0400
commitb8c5910232d1428b686716be02b10b2c498cab89 (patch)
treec1e97a5f3ce7aa5fe25c5e0cc1b575038fb59c00
parentCompletely retry if a send fails during a broadcast (diff)
downloadtorus-b8c5910232d1428b686716be02b10b2c498cab89.tar.gz
torus-b8c5910232d1428b686716be02b10b2c498cab89.zip
Remove MADV_NOSYNC
I don't think this has any benefit. It just takes longer to stop the
server because it flushes all the pages then.
-rwxr-xr-xserver.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/server.c b/server.c
index 2fcdff7..c3ae650 100755
--- a/server.c
+++ b/server.c
@@ -38,11 +38,6 @@ static void tilesMap(void) {
     error = madvise(tiles, TILES_SIZE, MADV_RANDOM);
     if (error) err(EX_OSERR, "madvise");
 
-#ifdef MADV_NOSYNC
-    error = madvise(tiles, TILES_SIZE, MADV_NOSYNC);
-    if (error) err(EX_OSERR, "madvise");
-#endif
-
 #ifdef MADV_NOCORE
     error = madvise(tiles, TILES_SIZE, MADV_NOCORE);
     if (error) err(EX_OSERR, "madvise");
='2021-09-22 18:46:14 -0400'>2021-09-22Remove Linux-specific utilitiesJune McEnroe 2021-09-22Call sandbox in CGI modeJune McEnroe 2021-09-22Support HTTP PUT in upJune McEnroe 2021-09-22Remove default faviconJune McEnroe 2021-09-21Use Z_FILTERED strategyJune McEnroe 2021-09-21Recalculate various lengths only as neededJune McEnroe 2021-09-21Rewrite pngo, add explicit optionsJune McEnroe 2021-09-16Fix /* **/ comment matchingJune McEnroe 2021-09-15Remove typer, add downgrade to READMEJune McEnroe 2021-09-15Set bot mode on downgradeJune McEnroe 2021-09-15Enter capsicum in downgradeJune McEnroe 2021-09-15Factor out common parts of downgrade messagesJune McEnroe 2021-09-14Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe 2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe