]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/mach/hurd/kill.c
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / mach / hurd / kill.c
index 5f1987b89984d7b33581eb3f8071a0432c28e980..c7406ab8baa5255e91d6299acc21af9d472594bc 100644 (file)
@@ -1,4 +1,4 @@
-/* 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
@@ -13,7 +13,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
 #include <sys/types.h>
@@ -55,8 +55,8 @@ __kill (pid_t pid, int sig)
                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;
@@ -103,8 +103,8 @@ __kill (pid_t pid, int sig)
            }
          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)
@@ -146,4 +146,5 @@ __kill (pid_t pid, int sig)
   return delivered ? 0 : __hurd_fail (err ?: ESRCH);
 }
 
+libc_hidden_def (__kill)
 weak_alias (__kill, kill)