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.
Diffstat (limited to '')
-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");
c56d&follow=1'>Add A Common TruthJune McEnroe 2018-04-03Add new Colin Stetson albumJune McEnroe 2018-04-03Add ForgetJune McEnroe 2018-04-03Add ArcaJune McEnroe 2018-04-03Add new DMST and Joni VoidJune McEnroe 2018-04-03Add The Body LoversJune McEnroe 2018-04-03Add some albums from recentlyJune McEnroe 2018-04-03Add Saltland Light of MercyJune McEnroe 2018-04-03Add Jessica Moss GlaciersJune McEnroe 2018-04-03Add BNNY RBBTJune McEnroe 2018-04-03Add DepthsJune McEnroe 2018-04-03Add new Saltland previewJune McEnroe 2018-04-03Add BenjiJune McEnroe 2018-04-03Add Mouth MoodsJune McEnroe 2018-04-03Add Those Who Walk AwayJune McEnroe 2018-04-03Add Some TunesJune McEnroe 2018-04-03Add Pas pire popJune McEnroe 2018-04-03Add I Give You PowerJune McEnroe 2018-04-03Add Jenny GoGoJune McEnroe 2018-04-03Add KKB Fish BowlJune McEnroe 2018-04-03Add new Avec le soleil album previewJune McEnroe 2018-04-03Add Julien Baker as recent new musicJune McEnroe 2018-04-03Add recent new musicJune McEnroe