Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed May 2, 2024
1 parent 2204ddd commit 3b356b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/process.d
Original file line number Diff line number Diff line change
Expand Up @@ -1069,14 +1069,14 @@ private Pid spawnProcessPosix(scope const(char[])[] args,
int opendirfd = dirfd(dir);

// Iterate over all file descriptors
while(true)
while (true)
{
dirent* entry = readdir(dir);

if (entry is null) break;
if (entry.d_name[0] == '.') continue;

int fd = atoi(cast(char*)entry.d_name);
int fd = atoi(cast(char*) entry.d_name);

// Don't close stdin, stdout, stderr, forkPipeOut or the directory file descriptor
if (fd < 3 || fd == forkPipeOut || fd == opendirfd) continue;
Expand Down

0 comments on commit 3b356b6

Please sign in to comment.