lix/src
Tuomas Tynkkynen 649a81bcd6 nix-daemon: Don't splice with len=SIZE_MAX
Currently, 'nix-daemon --stdio' is always failing for me, due to the
splice call always failing with (on a 32-bit host):

splice(0, NULL, 3, NULL, 4294967295, SPLICE_F_MOVE) = -1 EINVAL (Invalid argument)

With a bit of ftracing (and luck) the problem seems to be that splice()
always fails with EINVAL if the len cast as ssize_t is negative:
http://lxr.free-electrons.com/source/fs/read_write.c?v=4.4#L384

So use SSIZE_MAX instead of SIZE_MAX.
2017-02-13 15:14:44 +02:00
..
boost Force stack trace for boost format errors 2016-03-02 15:46:07 +01:00
build-remote Merge branch 'nix-copy-closure-c++' of https://github.com/shlevy/nix 2017-02-07 20:47:45 +01:00
buildenv Fix Fedora build 2016-08-30 13:56:22 +02:00
libexpr Add support for passing structured data to builders 2017-01-26 20:40:33 +01:00
libmain Restore default signal handling in child processes 2017-02-01 13:00:21 +01:00
libstore Merge branch 'nix-copy-closure-c++' of https://github.com/shlevy/nix 2017-02-07 20:47:45 +01:00
libutil Move SavingSourceAdapter to serialise.hh 2017-02-07 19:29:20 +01:00
nix exportReferencesGraph: Export more complete info in JSON format 2017-01-26 20:41:08 +01:00
nix-build Restore default signal handling in child processes 2017-02-01 13:00:21 +01:00
nix-channel nix-channel: Fix --update <CHANNELS> 2016-11-21 15:54:19 +01:00
nix-collect-garbage printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-copy-closure nix-copy-closure: Use computeFSClosure() and LegacySSHStore 2017-02-07 20:55:47 +01:00
nix-daemon nix-daemon: Don't splice with len=SIZE_MAX 2017-02-13 15:14:44 +02:00
nix-env printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-instantiate Allow setting the state directory as a store parameter 2016-06-02 16:02:48 +02:00
nix-prefetch-url printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-store Provide default implementations for a couple of Store methods 2017-02-07 19:29:21 +01:00
resolve-system-dependencies printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00