Searched refs:dev_null_fd (Results 1 – 1 of 1) sorted by relevance
465 const int dev_null_fd = open("/dev/null", O_RDWR | O_CLOEXEC); in DetachSocket() local466 if (dev_null_fd < 0) { in DetachSocket()470 if (dup3(dev_null_fd, fd, O_CLOEXEC) == -1) { in DetachSocket()476 if (close(dev_null_fd) == -1) { in DetachSocket()477 fail_fn(android::base::StringPrintf("Failed close(%d): %s", dev_null_fd, strerror(errno))); in DetachSocket()