HH\Lib\OS\close

Facebook Engineer?

This function is available as OS\close() in Facebook's 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