Fix typos in Belorussian & Russian team names in PO-files
[midnight-commander.git] / vfs / tcputil.c
blob08d62d46d4e037231db1488d2bba0e00b1de734f
1 /* Network utilities for the Midnight Commander Virtual File System.
3 Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2005, 2007
4 Free Software Foundation, Inc.
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License
8 as published by the Free Software Foundation; either version 2 of
9 the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
20 /**
21 * \file
22 * \brief Source: Virtual File System: Network utilities
25 #include <config.h>
26 #include <stdlib.h>
27 #include <stdio.h>
28 #include <signal.h>
29 #include <sys/types.h>
31 #include "tcputil.h"
33 int got_sigpipe;
35 static void
36 sig_pipe (int unused)
38 (void) unused;
39 got_sigpipe = 1;
42 void
43 tcp_init (void)
45 struct sigaction sa;
47 got_sigpipe = 0;
48 sa.sa_handler = sig_pipe;
49 sa.sa_flags = 0;
50 sigemptyset (&sa.sa_mask);
51 sigaction (SIGPIPE, &sa, NULL);