diff options
author | Roger Dingledine <arma@torproject.org> | 2006-07-04 03:25:07 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-07-04 03:25:07 +0000 |
commit | 35e95d7783772b4aa697fac6945460a23c782bda (patch) | |
tree | f8e79fcef6c9fd315d3af66c73bb34866a2ac2e1 /src/common/compat.h | |
parent | dc79dd6a469cf9c563bbc160ea297f3c5af5487f (diff) | |
download | tor-35e95d7783772b4aa697fac6945460a23c782bda.tar.gz tor-35e95d7783772b4aa697fac6945460a23c782bda.zip |
minor fixes
svn:r6710
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index b70963b4be..abacce231a 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -160,7 +160,7 @@ int touch_file(const char *fname); /* ===== Net compatibility */ #ifdef MS_WINDOWS -/** On windows, you have to call close() on fds returned by open(), +/** On Windows, you have to call close() on fds returned by open(), * and closesocket() on fds returned by socket(). On Unix, everything * gets close()'d. We abstract this difference by always using * tor_close_socket to close sockets, and always using close() on @@ -247,8 +247,9 @@ void spawn_exit(void); #undef TOR_IS_MULTITHREADED #endif -/* Because we use threads instead of processes on Windows, we need locking on - * Windows. On Unixy platforms, these functions are no-ops. */ +/* Because we use threads instead of processes on most platforms (Windows, + * Linux, etc), we need locking for them. On platforms with poor thread + * support or broken gethostbyname_r, these functions are no-ops. */ typedef struct tor_mutex_t tor_mutex_t; #ifdef TOR_IS_MULTITHREADED |