projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b413257
)
Ignore alarm signals if we do not need to respond to them.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 13 Mar 2001 21:32:24 +0000
(21:32 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 13 Mar 2001 21:32:24 +0000
(21:32 +0000)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index
4ef654d
..
3a58749
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.10
2 2001/03/04 13:59:25
guus Exp $
+ $Id: net.c,v 1.35.4.10
3 2001/03/13 21:32:24
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-849,9
+849,12
@@
cp
cfg = get_config_val(upstreamcfg, config_connectto);
if(!cfg && upstreamcfg == config)
cfg = get_config_val(upstreamcfg, config_connectto);
if(!cfg && upstreamcfg == config)
- /* No upstream IP given, we're listen only. */
- return;
-
+ {
+ /* No upstream IP given, we're listen only. */
+ signal(SIGALRM, SIG_IGN);
+ return;
+ }
+
while(cfg)
{
upstreamcfg = cfg->next;
while(cfg)
{
upstreamcfg = cfg->next;