Changeset 546
- Timestamp:
- 02/12/10 12:32:55 (7 months ago)
- Location:
- trunk
- Files:
-
- 13 edited
-
Makefile.in (modified) (1 diff)
-
config.h.in (modified) (1 diff)
-
configure (modified) (16 diffs)
-
configure.ac (modified) (2 diffs)
-
debian/Makefile.in (modified) (1 diff)
-
freebsd/Makefile.in (modified) (1 diff)
-
i2p/Makefile.in (modified) (1 diff)
-
man/Makefile.in (modified) (1 diff)
-
src/Makefile.in (modified) (1 diff)
-
src/cygwin/Makefile.in (modified) (1 diff)
-
src/ocat.c (modified) (7 diffs)
-
src/ocat.h (modified) (1 diff)
-
src/ocatctrl.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r541 r546 113 113 LTLIBOBJS = @LTLIBOBJS@ 114 114 MAKEINFO = @MAKEINFO@ 115 MKDIR_P = @MKDIR_P@ 115 116 OBJEXT = @OBJEXT@ 116 117 PACKAGE = @PACKAGE@ -
trunk/config.h.in
r502 r546 88 88 #undef HAVE_SYS_TYPES_H 89 89 90 /* Define to 1 if you have the <sys/wait.h> header file. */ 91 #undef HAVE_SYS_WAIT_H 92 90 93 /* enable RTT measurement */ 91 94 #undef MEASURE_RTT -
trunk/configure
r545 r546 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r54 5.3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r546. 4 4 # 5 5 # Report bugs to <rahra@cypherpunk.at>. … … 597 597 PACKAGE_NAME='onioncat' 598 598 PACKAGE_TARNAME='onioncat' 599 PACKAGE_VERSION='0.2.2.r54 5'600 PACKAGE_STRING='onioncat 0.2.2.r54 5'599 PACKAGE_VERSION='0.2.2.r546' 600 PACKAGE_STRING='onioncat 0.2.2.r546' 601 601 PACKAGE_BUGREPORT='rahra@cypherpunk.at' 602 602 … … 676 676 am__fastdepCC_FALSE 677 677 LN_S 678 MKDIR_P 678 679 build 679 680 build_cpu … … 1261 1262 # This message is too long to be a string in the A/UX 3.1 sh. 1262 1263 cat <<_ACEOF 1263 \`configure' configures onioncat 0.2.2.r54 5to adapt to many kinds of systems.1264 \`configure' configures onioncat 0.2.2.r546 to adapt to many kinds of systems. 1264 1265 1265 1266 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1331 1332 if test -n "$ac_init_help"; then 1332 1333 case $ac_init_help in 1333 short | recursive ) echo "Configuration of onioncat 0.2.2.r54 5:";;1334 short | recursive ) echo "Configuration of onioncat 0.2.2.r546:";; 1334 1335 esac 1335 1336 cat <<\_ACEOF … … 1423 1424 if $ac_init_version; then 1424 1425 cat <<\_ACEOF 1425 onioncat configure 0.2.2.r54 51426 onioncat configure 0.2.2.r546 1426 1427 generated by GNU Autoconf 2.62 1427 1428 … … 1437 1438 running configure, to aid debugging if configure makes a mistake. 1438 1439 1439 It was created by onioncat $as_me 0.2.2.r54 5, which was1440 It was created by onioncat $as_me 0.2.2.r546, which was 1440 1441 generated by GNU Autoconf 2.62. Invocation command line was 1441 1442 … … 2086 2087 # Define the identity of the package. 2087 2088 PACKAGE='onioncat' 2088 VERSION='0.2.2.r54 5'2089 VERSION='0.2.2.r546' 2089 2090 2090 2091 … … 2237 2238 2238 2239 cat >>confdefs.h <<\_ACEOF 2239 #define SVN_REVISION "54 5"2240 #define SVN_REVISION "546" 2240 2241 _ACEOF 2241 2242 … … 3416 3417 $as_echo "no, using $LN_S" >&6; } 3417 3418 fi 3419 3420 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 3421 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3422 if test -z "$MKDIR_P"; then 3423 if test "${ac_cv_path_mkdir+set}" = set; then 3424 $as_echo_n "(cached) " >&6 3425 else 3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3427 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3428 do 3429 IFS=$as_save_IFS 3430 test -z "$as_dir" && as_dir=. 3431 for ac_prog in mkdir gmkdir; do 3432 for ac_exec_ext in '' $ac_executable_extensions; do 3433 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3434 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3435 'mkdir (GNU coreutils) '* | \ 3436 'mkdir (coreutils) '* | \ 3437 'mkdir (fileutils) '4.1*) 3438 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3439 break 3;; 3440 esac 3441 done 3442 done 3443 done 3444 IFS=$as_save_IFS 3445 3446 fi 3447 3448 if test "${ac_cv_path_mkdir+set}" = set; then 3449 MKDIR_P="$ac_cv_path_mkdir -p" 3450 else 3451 # As a last resort, use the slow shell script. Don't cache a 3452 # value for MKDIR_P within a source directory, because that will 3453 # break other packages using the cache if that directory is 3454 # removed, or if the value is a relative name. 3455 test -d ./--version && rmdir ./--version 3456 MKDIR_P="$ac_install_sh -d" 3457 fi 3458 fi 3459 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 3460 $as_echo "$MKDIR_P" >&6; } 3418 3461 3419 3462 … … 4076 4119 4077 4120 4078 for ac_header in sys/types.h sys/socket.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip6.h netinet/in6.h net/if.h net/if_tun.h linux/if_tun.h linux/sockios.h endian.h sys/endian.h netinet/icmp6.h net/ethernet.h netinet/if_ether.h netinet/ether.h 4121 4122 for ac_header in sys/types.h sys/wait.h sys/socket.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip6.h netinet/in6.h net/if.h net/if_tun.h linux/if_tun.h linux/sockios.h endian.h sys/endian.h netinet/icmp6.h net/ethernet.h netinet/if_ether.h netinet/ether.h 4079 4123 do 4080 4124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5326 5370 # values after options handling. 5327 5371 ac_log=" 5328 This file was extended by onioncat $as_me 0.2.2.r54 5, which was5372 This file was extended by onioncat $as_me 0.2.2.r546, which was 5329 5373 generated by GNU Autoconf 2.62. Invocation command line was 5330 5374 … … 5379 5423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5380 5424 ac_cs_version="\\ 5381 onioncat config.status 0.2.2.r54 55425 onioncat config.status 0.2.2.r546 5382 5426 configured by $0, generated by GNU Autoconf 2.62, 5383 5427 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" … … 5390 5434 srcdir='$srcdir' 5391 5435 INSTALL='$INSTALL' 5436 MKDIR_P='$MKDIR_P' 5392 5437 AWK='$AWK' 5393 5438 test -n "\$AWK" || AWK=awk … … 6006 6051 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6007 6052 esac 6053 ac_MKDIR_P=$MKDIR_P 6054 case $MKDIR_P in 6055 [\\/$]* | ?:[\\/]* ) ;; 6056 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6057 esac 6008 6058 _ACEOF 6009 6059 … … 6062 6112 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6063 6113 s&@INSTALL@&$ac_INSTALL&;t t 6114 s&@MKDIR_P@&$ac_MKDIR_P&;t t 6064 6115 $ac_datarootdir_hack 6065 6116 " -
trunk/configure.ac
r541 r546 21 21 #AC_PROG_INSTALL 22 22 AC_PROG_LN_S 23 AC_PROG_MKDIR_P 23 24 24 25 m4_include([ax_pthread.m4]) … … 36 37 # Checks for header files. 37 38 #AC_HEADER_STDC 38 AC_CHECK_HEADERS([sys/types.h sys/ socket.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip6.h netinet/in6.h net/if.h net/if_tun.h linux/if_tun.h linux/sockios.h endian.h sys/endian.h netinet/icmp6.h net/ethernet.h netinet/if_ether.h netinet/ether.h], [], [],39 AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/socket.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip6.h netinet/in6.h net/if.h net/if_tun.h linux/if_tun.h linux/sockios.h endian.h sys/endian.h netinet/icmp6.h net/ethernet.h netinet/if_ether.h netinet/ether.h], [], [], 39 40 [[ 40 41 #ifdef HAVE_SYS_TYPES_H -
trunk/debian/Makefile.in
r540 r546 78 78 LTLIBOBJS = @LTLIBOBJS@ 79 79 MAKEINFO = @MAKEINFO@ 80 MKDIR_P = @MKDIR_P@ 80 81 OBJEXT = @OBJEXT@ 81 82 PACKAGE = @PACKAGE@ -
trunk/freebsd/Makefile.in
r540 r546 78 78 LTLIBOBJS = @LTLIBOBJS@ 79 79 MAKEINFO = @MAKEINFO@ 80 MKDIR_P = @MKDIR_P@ 80 81 OBJEXT = @OBJEXT@ 81 82 PACKAGE = @PACKAGE@ -
trunk/i2p/Makefile.in
r541 r546 89 89 LTLIBOBJS = @LTLIBOBJS@ 90 90 MAKEINFO = @MAKEINFO@ 91 MKDIR_P = @MKDIR_P@ 91 92 OBJEXT = @OBJEXT@ 92 93 PACKAGE = @PACKAGE@ -
trunk/man/Makefile.in
r540 r546 82 82 LTLIBOBJS = @LTLIBOBJS@ 83 83 MAKEINFO = @MAKEINFO@ 84 MKDIR_P = @MKDIR_P@ 84 85 OBJEXT = @OBJEXT@ 85 86 PACKAGE = @PACKAGE@ -
trunk/src/Makefile.in
r544 r546 104 104 LTLIBOBJS = @LTLIBOBJS@ 105 105 MAKEINFO = @MAKEINFO@ 106 MKDIR_P = @MKDIR_P@ 106 107 OBJEXT = @OBJEXT@ 107 108 PACKAGE = @PACKAGE@ -
trunk/src/cygwin/Makefile.in
r544 r546 83 83 LTLIBOBJS = @LTLIBOBJS@ 84 84 MAKEINFO = @MAKEINFO@ 85 MKDIR_P = @MKDIR_P@ 85 86 OBJEXT = @OBJEXT@ 86 87 PACKAGE = @PACKAGE@ -
trunk/src/ocat.c
r545 r546 91 91 92 92 93 int mk_pid_file( uid_t uid)93 int mk_pid_file(void) 94 94 { 95 95 FILE *f; … … 122 122 case 0: 123 123 oe_close(CNF(pid_fd[1])); 124 125 // close tunnel device 126 oe_close(CNF(tunfd[0])); 127 if (CNF(tunfd[0]) != CNF(tunfd[1])) 128 oe_close(CNF(tunfd[1])); 129 130 // wait for something happening on pipe 124 131 if (read(CNF(pid_fd[0]), &c, 1) == -1) 125 132 log_msg(LOG_ERR, "error reading from pid_fd %d: \"%s\"", … … 129 136 log_msg(LOG_WARNING, "error deleting pid ]ile \"%s\": \"%s\"", 130 137 CNF(pid_file), strerror(errno)), exit(1); 138 log_msg(LOG_INFO, "pid file deleted, exiting."); 131 139 exit(0); 132 140 … … 183 191 void sig_handler(int sig) 184 192 { 193 int status; 194 185 195 switch (sig) 186 196 { 197 case SIGCHLD: 198 // FIXME: there should be some error handling 199 (void) waitpid(-1, &status, WNOHANG); 200 187 201 case SIGTERM: 188 202 case SIGINT: … … 216 230 if (sigaction(SIGUSR1, &sa, NULL) == -1) 217 231 log_msg(LOG_ERR, "could not install SIGUSR1 handler: \"%s\"", strerror(errno)), exit(1); 232 if (sigaction(SIGCHLD, &sa, NULL) == -1) 233 log_msg(LOG_ERR, "could not install SIGCHLD handler: \"%s\"", strerror(errno)), exit(1); 234 218 235 } 219 236 … … 551 568 if (CNF(daemon)) 552 569 background(); 570 571 // create pid_file 572 if (CNF(create_pid_file)) 573 mk_pid_file(); 553 574 554 575 if (!CNF(oc_listen)) … … 580 601 } 581 602 582 // create pid_file583 if (CNF(create_pid_file))584 mk_pid_file(pwd->pw_uid);585 586 603 if (!CNF(runasroot) && !getuid()) 587 604 { -
trunk/src/ocat.h
r539 r546 52 52 #ifdef HAVE_SYS_TYPES_H 53 53 #include <sys/types.h> 54 #endif 55 #ifdef HAVE_SYS_WAIT_H 56 #include <sys/wait.h> 54 57 #endif 55 58 #ifdef HAVE_NETINET_IN_H -
trunk/src/ocatctrl.c
r538 r546 56 56 { 57 57 log_msg(LOG_ERR, "could not open %d for writing: %s", fd, strerror(errno)); 58 oe_close(pfd[0]); 59 oe_close(pfd[1]); 58 60 return NULL; 59 61 } … … 69 71 log_msg(LOG_ERR, "could not open %d for reading: %s", fd, strerror(errno)); 70 72 CNF(config_read) = 1; 73 oe_close(pfd[0]); 74 oe_close(pfd[1]); 71 75 return NULL; 72 76 }
Note: See TracChangeset
for help on using the changeset viewer.
