diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/async-resolver.c | 12 | ||||
| -rw-r--r-- | common/async-resolver.h | 2 | ||||
| -rw-r--r-- | common/compat.c | 4 | ||||
| -rw-r--r-- | common/compat.h | 4 | ||||
| -rw-r--r-- | common/config-parser.c | 4 | ||||
| -rw-r--r-- | common/config-parser.h | 4 | ||||
| -rw-r--r-- | common/hash.c | 4 | ||||
| -rw-r--r-- | common/hash.h | 4 | ||||
| -rw-r--r-- | common/server-mainloop.c | 2 | ||||
| -rw-r--r-- | common/server-mainloop.h | 2 | ||||
| -rw-r--r-- | common/sock-any.c | 4 | ||||
| -rw-r--r-- | common/sock-any.h | 4 | ||||
| -rw-r--r-- | common/usuals.h | 4 | 
13 files changed, 31 insertions, 23 deletions
| diff --git a/common/async-resolver.c b/common/async-resolver.c index 284a486..8485bb2 100644 --- a/common/async-resolver.c +++ b/common/async-resolver.c @@ -1,5 +1,5 @@  /* - * Copyright (c) 2006, Nate Nielsen + * Copyright (c) 2006, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -51,7 +51,7 @@   * THREAD COMMUNICATION   */ -#define TSIGNAL_UNITITIALIZED  { -1 -1 } +#define TSIGNAL_UNITITIALIZED  { -1, -1 }  static int  tsignal_init(int* sig) @@ -262,6 +262,14 @@ async_resolver_queue(const char* hostname, const char* servname,      resolve_request* r;      char* t; +    if(!res_thread) +    { +        /* All errors go to callback */ +        errno = ESRCH; +        (cb)(EAI_SYSTEM, NULL, arg); +        return; +    } +      req = calloc(1, sizeof(resolve_request));      if(!req)      { diff --git a/common/async-resolver.h b/common/async-resolver.h index a3be364..ac1c772 100644 --- a/common/async-resolver.h +++ b/common/async-resolver.h @@ -1,5 +1,5 @@  /* - * Copyright (c) 2006, Nate Nielsen + * Copyright (c) 2006, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without diff --git a/common/compat.c b/common/compat.c index c6138d0..6f9c58d 100644 --- a/common/compat.c +++ b/common/compat.c @@ -1,5 +1,5 @@  /* - * Copyright (c) 2004, Nate Nielsen + * Copyright (c) 2004, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -32,7 +32,7 @@   *   *   * CONTRIBUTORS - *  Nate Nielsen <nielsen@memberwebs.com> + *  Stef Walter <stef@memberwebs.com>   *   */ diff --git a/common/compat.h b/common/compat.h index 8aaef66..8eda20f 100644 --- a/common/compat.h +++ b/common/compat.h @@ -1,5 +1,5 @@  /* - * Copyright (c) 2004, Nate Nielsen + * Copyright (c) 2004, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -32,7 +32,7 @@   *   *   * CONTRIBUTORS - *  Nate Nielsen <nielsen@memberwebs.com> + *  Stef Walter <stef@memberwebs.com>   *   */ diff --git a/common/config-parser.c b/common/config-parser.c index f73d488..cf1599d 100644 --- a/common/config-parser.c +++ b/common/config-parser.c @@ -1,5 +1,5 @@  /* - * Copyright (c) 2005, Nate Nielsen + * Copyright (c) 2005, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -32,7 +32,7 @@   *   *   * CONTRIBUTORS - *  Nate Nielsen <nielsen@memberwebs.com> + *  Stef Walter <stef@memberwebs.com>   */  #include "usuals.h" diff --git a/common/config-parser.h b/common/config-parser.h index fc98e31..19a300a 100644 --- a/common/config-parser.h +++ b/common/config-parser.h @@ -1,5 +1,5 @@  /* - * Copyright (c) 2005, Nate Nielsen + * Copyright (c) 2005, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -32,7 +32,7 @@   *   *   * CONTRIBUTORS - *  Nate Nielsen <nielsen@memberwebs.com> + *  Stefan Walter <stef@memberwebs.com>   */  #ifndef __CONFIG_PARSER_H__ diff --git a/common/hash.c b/common/hash.c index c99a689..9acd2df 100644 --- a/common/hash.c +++ b/common/hash.c @@ -1,5 +1,5 @@  /* - * Copyright (c) 2004, Nate Nielsen + * Copyright (c) 2004, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -33,7 +33,7 @@  /*   * Originally from apache 2.0 - * Modifications for general use by <nielsen@memberwebs.com> + * Modifications for general use by <stef@memberwebs.com>   */  /* Copyright 2000-2004 The Apache Software Foundation diff --git a/common/hash.h b/common/hash.h index df34a7a..c046b38 100644 --- a/common/hash.h +++ b/common/hash.h @@ -1,5 +1,5 @@  /* - * Copyright (c) 2004, Nate Nielsen + * Copyright (c) 2004, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -33,7 +33,7 @@  /*   * Originally from apache 2.0 - * Modifications for general use by <nielsen@memberwebs.com> + * Modifications for general use by <stef@memberwebs.com>   */  /* Copyright 2000-2004 The Apache Software Foundation diff --git a/common/server-mainloop.c b/common/server-mainloop.c index 824f3b1..d569d61 100644 --- a/common/server-mainloop.c +++ b/common/server-mainloop.c @@ -1,5 +1,5 @@  /* - * Copyright (c) 2006, Nate Nielsen + * Copyright (c) 2006, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without diff --git a/common/server-mainloop.h b/common/server-mainloop.h index 6bf6b7c..ea588e9 100644 --- a/common/server-mainloop.h +++ b/common/server-mainloop.h @@ -1,5 +1,5 @@  /* - * Copyright (c) 2006, Nate Nielsen + * Copyright (c) 2006, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without diff --git a/common/sock-any.c b/common/sock-any.c index bb207ea..4476fde 100644 --- a/common/sock-any.c +++ b/common/sock-any.c @@ -1,5 +1,5 @@  /* - * Copyright (c) 2004, Nate Nielsen + * Copyright (c) 2004, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -32,7 +32,7 @@   *   *   * CONTRIBUTORS - *  Nate Nielsen <nielsen@memberwebs.com> + *  Stef Walter <stef@memberwebs.com>   *   */ diff --git a/common/sock-any.h b/common/sock-any.h index 7df54e1..e9b57ef 100644 --- a/common/sock-any.h +++ b/common/sock-any.h @@ -1,5 +1,5 @@  /* - * Copyright (c) 2004, Nate Nielsen + * Copyright (c) 2004, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -32,7 +32,7 @@   *   *   * CONTRIBUTORS - *  Nate Nielsen <nielsen@memberwebs.com> + *  Stef Walter <stef@memberwebs.com>   *   */ diff --git a/common/usuals.h b/common/usuals.h index ef1f2d9..5168ca3 100644 --- a/common/usuals.h +++ b/common/usuals.h @@ -1,5 +1,5 @@  /* - * Copyright (c) 2005, Nate Nielsen + * Copyright (c) 2005, Stefan Walter   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -32,7 +32,7 @@   *   *   * CONTRIBUTORS - *  Nate Nielsen <nielsen@memberwebs.com> + *  Stef Walter <stef@memberwebs.com>   *   */ | 
