HH\Lib\OS\close

Meta Engineer?

This is available as OS\close in the www repository.

Close the specified FileDescriptor

namespace HH\Lib\OS;

function close(
  FileDescriptor $fd,
): void;

See man 2 close for details. On error, an ErrnoException will be thrown.

This function is not automatically retried on EINTR, as close() is not safe to retry on EINTR.

Parameters

  • FileDescriptor $fd

Returns

  • void