]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - hurd/ctty-output.c
sysvipc: Implement semop based on semtimedop
[thirdparty/glibc.git] / hurd / ctty-output.c
index 70fc25499d9057f9a2f2c0e268730bb52d0de6ac..d77c35ad6fa04e07b97d4c0b4f9c35eb0ee87f42 100644 (file)
@@ -1,21 +1,20 @@
 /* _hurd_ctty_output -- Do an output RPC and generate SIGTTOU if necessary.
-   Copyright (C) 1995,97,99 Free Software Foundation, Inc.
+   Copyright (C) 1995-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
-   modify it under the terms of the GNU Library General Public License as
-   published by the Free Software Foundation; either version 2 of the
-   License, or (at your option) any later version.
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
 
    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Library General Public License for more details.
+   Lesser General Public License for more details.
 
-   You should have received a copy of the GNU Library General Public
-   License along with the GNU C Library; see the file COPYING.LIB.  If not,
-   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
 
 #include <hurd.h>
 #include <hurd/signal.h>
@@ -39,8 +38,8 @@ _hurd_ctty_output (io_t port, io_t ctty, error_t (*rpc) (io_t))
             SIGTTOU.  We redo this check at the top of the loop in case
             the signal handler changed the state.  */
          __spin_lock (&ss->lock);
-         if (__sigismember (&ss->blocked, SIGTTOU) ||
-             ss->actions[SIGTTOU].sa_handler == SIG_IGN)
+         if (__sigismember (&ss->blocked, SIGTTOU)
+             || ss->actions[SIGTTOU].sa_handler == SIG_IGN)
            err = EIO;
          else
            err = 0;