Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-11-09 | child: add addr argument to child_listening_sock(). | Michael Adam | 1 | -2/+2 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2013-11-09 | sock: add addr argument to listen_sock() | Michael Adam | 1 | -1/+1 | |
instead of using config.ipAddr internally. This is in preparation to make it possible to call it for multiple addresses. Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2013-11-09 | sock/child: remove global variable addrlen. | Michael Adam | 1 | -4/+4 | |
This changes listen_sock() to not return the addrlen of the used address from getaddrinfo call to the caller, stored in global addrlen in child.c. This was only used to be able to allocate enough space for the arguments to the later accept call depending on whether IPv4 or IPv6 is used. This removes the need to pass this info by always allocating sizeof(struct sockaddr_storage) instead, which is enough to carry both sockaddr_in and sockaddr_in6. Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2009-12-23 | Add warning comments to SIGHUP handlers, that we ignore the retrun code of ↵ | Michael Adam | 1 | -0/+8 | |
reload_config(). This can actually fail, and we probably need some way to handle this. Like an emergency error exit or so... Michael | |||||
2009-12-23 | Don't truncate the log file in the SIGHUP handler. | Michael Adam | 1 | -2/+0 | |
Logging is re-initialized by reload_config() now. And truncation is wrong anyways: A syslog mechanism will move the current log file and the reopen-action will just create a new empty log file upon SIGHUP. Michael | |||||
2009-12-22 | reload config upon SIGHUP | Michael Adam | 1 | -0/+4 | |
Michael | |||||
2009-12-07 | Move definition of "struct config_s" from main.h to conf.h | Michael Adam | 1 | -0/+1 | |
Michael | |||||
2009-10-25 | propagate reload of filter file to child procs by sending HUP signals | Michael Adam | 1 | -0/+3 | |
2009-10-25 | Change child_kill_children() to take the signal as an argument. | Michael Adam | 1 | -2/+2 | |
2009-10-25 | child: handle SIGHUP in the child by reloading the filter file | Michael Adam | 1 | -1/+13 | |
2009-10-25 | use new filter_reload() in child_main_loop() | Michael Adam | 1 | -6/+1 | |
2009-09-15 | child: move log messagte in child_main_loop() to a less irritating place. | Michael Adam | 1 | -1/+2 | |
Michael | |||||
2009-09-15 | Indent code to Tinyproxy coding style | Mukund Sivaraman | 1 | -314/+280 | |
The modified files were indented with GNU indent using the following command: indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \ -saf -sai -saw -sc -cdw -ce -nut -il0 No other changes of any sort were made. | |||||
2009-08-07 | Rename tinyproxy.[ch] to main.[ch] | Mukund Sivaraman | 1 | -1/+1 | |
2009-08-04 | child_pool_create(): add to explicit cats to reduce compiler warnings. | Michael Adam | 1 | -2/+2 | |
Michael | |||||
2009-08-04 | child: adapt child_config to contain unsigned integers | Michael Adam | 1 | -3/+3 | |
as just changed in get_int_arg. Michael | |||||
2009-08-04 | child: add explicit cast in child_main(). | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2008-12-08 | Convert tabs to spaces | Mukund Sivaraman | 1 | -111/+109 | |
2008-12-08 | Break at 80 columns | Mukund Sivaraman | 1 | -6/+12 | |
2008-12-01 | Reformat code to GNU coding style | Mukund Sivaraman | 1 | -292/+319 | |
This is a commit which simply ran all C source code files through GNU indent. No other modifications were made. | |||||
2008-08-24 | Add more calls to umask() before mkstemp() | Mukund Sivaraman | 1 | -0/+5 | |
2008-05-24 | Updated copyright, license notices in source code | Mukund Sivaraman | 1 | -13/+17 | |
The notices have been changed to a more GNU look. Documentation comments have been separated from the copyright header. I've tried to keep all copyright notices intact. Some author contact details have been updated. | |||||
2005-08-15 | * [Indent] Ran Source Through indent | Robert James Kaes | 1 | -272/+281 | |
I re-indented the source code using indent with the following options: indent -kr -bad -bap -nut -i8 -l80 -psl -sob -ss -ncs There are now _no_ tabs in the source files, and all indentation is eight spaces. Lines are 80 characters long, and the procedure type is on it's own line. Read the indent manual for more information about what each option means. | |||||
2005-07-12 | * Updated Copyright Email Addresses | Robert James Kaes | 1 | -2/+2 | |
Updated the copyright email addresses for Robert James Kaes. The users.sourceforge.net address should always exist. | |||||
2004-08-24 | Changed some of the variable types so that the code compiles cleanly | Robert James Kaes | 1 | -4/+4 | |
on other operating systems. (Used cf.sourceforge.net as the test system for cross compiling.) | |||||
2004-08-10 | Merged in changes from 1.6.3 | Robert James Kaes | 1 | -4/+4 | |
2004-02-13 | Removed unnecessary casts (mostly dealing with memory allocation.) I | Robert James Kaes | 1 | -6/+5 | |
should never have added them in the first place. They don't really buy anything, and they can hide bugs. | |||||
2003-08-07 | # Merged in changes from the stable 1.6 branch. | Robert James Kaes | 1 | -4/+3 | |
2003-07-31 | Added appropriate casts (void*) casts to allow the code to compile | Robert James Kaes | 1 | -9/+12 | |
cleanly using a C++ compiler. Changed the servers_waiting variable to an unsigned int, since the number of servers waiting can never be negative, and added an assert() to ensure this invariant. | |||||
2003-05-31 | # Changed all the for calls to use the != test rather than < test. | Robert James Kaes | 1 | -5/+5 | |
The change was recommended in the C/C++ User Journal magazine. | |||||
2003-04-16 | # Changed it again to this time use the TINYPROXY_DEBUG environment | Robert James Kaes | 1 | -7/+13 | |
variable to determine whether to wait for a connection from GDB. | |||||
2003-04-16 | # The programmer is now made to _explicitly_ enable the GDB support in | Robert James Kaes | 1 | -2/+3 | |
the child handling function. | |||||
2003-03-13 | # (child_main): If this is a debugging build output the child process | Robert James Kaes | 1 | -2/+7 | |
ID and wait for 10 seconds so we have time to connect gdb to the child. This is needed if we want to use gdb against the child process. | |||||
2002-11-21 | (child_main): Cleaned up the notice string to be more clear why a | Robert James Kaes | 1 | -6/+4 | |
child is being closed. | |||||
2002-10-03 | (child_main): Check to make sure memory could be allocated to handle | Robert James Kaes | 1 | -2/+7 | |
the child request. (child_main_loop): Added a call to truncate_log_file() when the log file is to be rotated. | |||||
2002-06-27 | (child_make): Reset the various signals to the default signal handler so ↵ | Robert James Kaes | 1 | -1/+9 | |
that the children can be properly destroyed. | |||||
2002-06-15 | (child_main_loop): Moved the filter re-initiation code into the loop. This ↵ | Robert James Kaes | 1 | -4/+12 | |
code is activated whenever the SIGHUP signal is received. | |||||
2002-06-05 | (child_main): Added a DEBUG call to let me know which process has accepted a ↵ | Robert James Kaes | 1 | -1/+3 | |
connection. This is needed for debugging using "gdb". | |||||
2002-05-29 | Changed the tests on the return value from malloc_shared_memory() to make ↵ | Robert James Kaes | 1 | -3/+3 | |
tinyproxy more portable, since we can't be certain that "if (!ret_value)" would actually detect a mmap() error. | |||||
2002-05-26 | Changed from using a threading model to a standard pre-forked model. | Robert James Kaes | 1 | -0/+405 | |
Therefore the thread.c file has been removed and this file replaces it. These files are really just the thread.c and thread.h files with all the threading stuff replaced with fork() code. Most of the code is identical. |