From c4a0c63f0dd25390d765b5fc52a7e91743641adf Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 28 May 2007 19:40:57 +0000 Subject: Use 'Stef' instead of 'Nate' --- common/async-resolver.c | 12 ++++++++++-- common/async-resolver.h | 2 +- common/compat.c | 4 ++-- common/compat.h | 4 ++-- common/config-parser.c | 4 ++-- common/config-parser.h | 4 ++-- common/hash.c | 4 ++-- common/hash.h | 4 ++-- common/server-mainloop.c | 2 +- common/server-mainloop.h | 2 +- common/sock-any.c | 4 ++-- common/sock-any.h | 4 ++-- common/usuals.h | 4 ++-- 13 files changed, 31 insertions(+), 23 deletions(-) (limited to 'common') 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 + * Stef Walter * */ 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 + * Stef Walter * */ 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 + * Stef Walter */ #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 + * Stefan Walter */ #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 + * Modifications for general use by */ /* 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 + * Modifications for general use by */ /* 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 + * Stef Walter * */ 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 + * Stef Walter * */ 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 + * Stef Walter * */ -- cgit v1.2.3