From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 4 Apr 2014 01:35:05 -0400 To: 9fans@9fans.net Message-ID: <6e85a8537b36b3a176fd2b8527068842@ladd.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] nil, and the danger of zero Topicbox-Message-UUID: d68a4c58-ead8-11e9-9d60-3106f5b1d025 so, as it turns out, not all zeros do the same thing to the stack..... pfffft. at least it's a simple reason why venti won't run. ; diffy -c ../boot/local.c /n/dump/2014/0403/sys/src/nix/boot/local.c:212,218 - ../boot/local.c:212,218 f[2] = "tcp!127.1!8000"; } configloopback(); - run("/boot/venti", "-c", f[0], "-a", f[1], "-h", f[2], 0); + run("/boot/venti", "-c", f[0], "-a", f[1], "-h", f[2], nil); /* * If the announce address is tcp!*!foo, then set * $venti to tcp!127.1!foo instead, which is actually dialable. /n/dump/2014/0403/sys/src/nix/boot/local.c:233,239 - ../boot/local.c:233,239 /* start fossil */ print("fossil(%s)...", partition); - run("/boot/fossil", "-f", partition, "-c", "srv -A fboot", "-c", "srv -p fscons", 0); + run("/boot/fossil", "-f", partition, "-c", "srv -A fboot", "-c", "srv -p fscons", nil); fd = open("#s/fboot", ORDWR); if(fd < 0){ print("open #s/fboot: %r\n"); - erik