Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions std/process.d
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ private Pid spawnProcessPosix(scope const(char[])[] args,
{
void fallback (int lowfd)
{
import core.sys.posix.dirent : dirent, opendir, readdir, closedir, DIR;
import core.sys.posix.dirent : dirfd, dirent, opendir, readdir, closedir, DIR;
import core.sys.posix.unistd : close;
import core.sys.posix.stdlib : atoi, malloc, free;
import core.sys.posix.sys.resource : rlimit, getrlimit, RLIMIT_NOFILE;
Expand All @@ -1048,10 +1048,6 @@ private Pid spawnProcessPosix(scope const(char[])[] args,

immutable maxDescriptors = cast(int) r.rlim_cur;

// Missing druntime declaration
pragma(mangle, "dirfd")
extern(C) nothrow @nogc int dirfd(DIR* dir);

DIR* dir = null;

// We read from /dev/fd or /proc/self/fd only if the limit is high enough
Expand Down
Loading