X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/8656dc507aee9c5dcb3a6ad876565f5fcac425ae..bfab5602f254a61a5c7bf354ca184fa582b9e609:/sig.c diff --git a/sig.c b/sig.c index 05642b4..ee4f46c 100644 --- a/sig.c +++ b/sig.c @@ -7,7 +7,7 @@ * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the mLib utilities library. * @@ -15,12 +15,12 @@ * 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. - * + * * mLib 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. - * + * * You should have received a copy of the GNU Library General Public * License along with mLib; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, @@ -131,7 +131,7 @@ static void sig_read(int fd, unsigned mode, void *p) } } } -} +} /* --- @sig_add@ --- * * @@ -278,7 +278,7 @@ void sig_init(sel_state *s) fdflags(fd[1], O_NONBLOCK, O_NONBLOCK, FD_CLOEXEC, FD_CLOEXEC); /* --- Set everything up for the future --- */ - + sigfd = fd[1]; sel_initfile(s, &sigsel, fd[0], SEL_READ, sig_read, 0); sel_addfile(&sigsel);