1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5#include <pal.h>
6#include <unistd.h>
7#include <fcntl.h>
8#include <sys/types.h>
9#include <sys/stat.h>
10#include <limits.h>
11#include <pal_assert.h>
12#include "processdescriptor.h"
13
14ProcessDescriptor ProcessDescriptor::FromCurrentProcess()
15{
16#ifdef __APPLE__
17 return Create(GetCurrentProcessId(), PAL_GetApplicationGroupId());
18#else
19 return Create(GetCurrentProcessId(), nullptr);
20#endif
21}
22