Blame support/xposix_spawn_file_actions_addclose.c

Packit Service 41f5ad
/* xposix_spawn_file_actions_addclose implementation.
Packit Service 41f5ad
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Service 41f5ad
   This file is part of the GNU C Library.
Packit Service 41f5ad
Packit Service 41f5ad
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 41f5ad
   modify it under the terms of the GNU Lesser General Public
Packit Service 41f5ad
   License as published by the Free Software Foundation; either
Packit Service 41f5ad
   version 2.1 of the License, or (at your option) any later version.
Packit Service 41f5ad
Packit Service 41f5ad
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 41f5ad
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 41f5ad
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 41f5ad
   Lesser General Public License for more details.
Packit Service 41f5ad
Packit Service 41f5ad
   You should have received a copy of the GNU Lesser General Public
Packit Service 41f5ad
   License along with the GNU C Library; if not, see
Packit Service 41f5ad
   <http://www.gnu.org/licenses/>.  */
Packit Service 41f5ad
Packit Service 41f5ad
#include <support/xspawn.h>
Packit Service 41f5ad
#include <support/check.h>
Packit Service 41f5ad
Packit Service 41f5ad
int
Packit Service 41f5ad
xposix_spawn_file_actions_addclose (posix_spawn_file_actions_t *fa, int fd)
Packit Service 41f5ad
{
Packit Service 41f5ad
  int status = posix_spawn_file_actions_addclose (fa, fd);
Packit Service 41f5ad
  if (status == -1)
Packit Service 41f5ad
    FAIL_EXIT1 ("posix_spawn_file_actions_addclose failed: %m\n");
Packit Service 41f5ad
  return status;
Packit Service 41f5ad
}