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