Comment 5 for bug 355552

Revision history for this message
Zorael (zorael) wrote :

This can be temporarily worked around using the same method as the one used to work around Firefox fsyncing excessively; by creating a wrapper that replaces the fsync() function with a noop dummy. See http://ubuntuforums.org/showthread.php?t=1103926.

    fsync.c:
            int fsync (int fd)
            {
                return 0;
            }

    $ gcc -fPIC -g -c -Wall fsync.c
    $ gcc -shared -Wl,-soname,fsync.so -o fsync.so fsync.o -lc
    $ mkdir ~/.misc
    $ mv fsync.* ~/.misc

    (+x) /usr/local/bin/quassel (or /usr/local/bin/quassel-nofsync, or whatnot):
            #!/bin/bash
            export LD_PRELOAD=$HOME/.misc/fsync.so
            /usr/bin/quassel "$@" &