mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-21 20:22:41 +09:00
The resolv.conf watcher needs one watch on one directory and a blocking read. gonotify v3.0.2 has a bug where it loops forever without advancing when a record's name length runs past the end of a read. It also never closes its fd on cancel and allocates 32 KB per Read. Use x/sys/unix directly, return an error on a malformed record, and stop when the kernel removes the watch. Fixes #16576 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Change-Id: If2bc5e94f8aab2922ee9e07b3c2b75a76f4f9236
20 lines
788 B
Nix
20 lines
788 B
Nix
# This is a shell.nix file used to describe the environment that
|
|
# tailscale needs for development.
|
|
#
|
|
# For more information about this and why this file is useful, see here:
|
|
# https://nixos.org/guides/nix-pills/developing-with-nix-shell.html
|
|
#
|
|
# Also look into direnv: https://direnv.net/, this can make it so that you can
|
|
# automatically get your environment set up when you change folders into the
|
|
# project.
|
|
(import (
|
|
let
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
in fetchTarball {
|
|
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
|
sha256 = lock.nodes.flake-compat.locked.narHash; }
|
|
) {
|
|
src = ./.;
|
|
}).shellNix
|
|
# nix-direnv cache busting line: sha256-ZcegeCjeDDLaX7adwdoxndOjukb4H+JNKHx0xGCWXiQ=
|