]> 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 92ab95a3ac6330a979188b1f102121d39818b98c..d77c35ad6fa04e07b97d4c0b4f9c35eb0ee87f42 100644 (file)
@@ -1,5 +1,5 @@
 /* _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
@@ -13,9 +13,8 @@
    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 <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;