about summary refs log tree commit diff homepage
path: root/server.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-08-08 20:55:44 -0400
committerJune McEnroe <june@causal.agency>2017-08-08 20:55:44 -0400
commit881f64ddfbc6141ac7ed2eacf7bc0de1f49bc67f (patch)
treef301d8417fc514ead50ac6a1a079092cf27c32a9 /server.c
parentCompletely retry if a send fails during a broadcast (diff)
downloadtorus-881f64ddfbc6141ac7ed2eacf7bc0de1f49bc67f.tar.gz
torus-881f64ddfbc6141ac7ed2eacf7bc0de1f49bc67f.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");
22:23:02 -0500'>2021-02-07Use class names for Foreground, Background, BorderColorJune McEnroe 2021-02-07Add simple battery status and clock to xsessionJune McEnroe 2021-02-07Set cursor theme and sizeJune McEnroe 2021-02-07Use scrot for up -s if no screencaptureJune McEnroe 2021-02-07Enable mouse acceleration in XJune McEnroe 2021-02-07Set colours for Xt and cwmJune McEnroe 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 2021-02-07Fully configure and rebind cwmJune McEnroe 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroe