-/* Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307 USA. */
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
#include <errno.h>
#include <sys/types.h>
err = __task_terminate (refport);
__mach_port_deallocate (__mach_task_self (), refport);
}
- } while (err == MACH_SEND_INVALID_DEST ||
- err == MIG_SERVER_DIED);
+ } while (err == MACH_SEND_INVALID_DEST
+ || err == MIG_SERVER_DIED);
else
{
error_t taskerr;
}
err = HURD_MSGPORT_RPC (__proc_getmsgport (proc, pid, &msgport),
(taskerr = __proc_pid2task (proc, pid,
- &refport)) ?
- __proc_getsidport (proc, &refport) : 0, 1,
+ &refport))
+ ? __proc_getsidport (proc, &refport) : 0, 1,
kill_port (msgport, refport));
}
if (! err)
return delivered ? 0 : __hurd_fail (err ?: ESRCH);
}
+libc_hidden_def (__kill)
weak_alias (__kill, kill)