Mukund Sivaraman
a257703e59
Reformat code to GNU coding style
...
This is a commit which simply ran all C source code files
through GNU indent. No other modifications were made.
2008-12-01 15:01:11 +00:00
Mukund Sivaraman
fadb98ee55
Add more calls to umask() before mkstemp()
2008-08-24 11:47:50 +05:30
Mukund Sivaraman
249d4b7f33
Updated copyright, license notices in source code
...
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.
2008-05-24 13:35:49 +05:30
Robert James Kaes
c0299e1868
* [Indent] Ran Source Through indent
...
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-08-15 03:54:31 +00:00
Robert James Kaes
a59117c7ca
* Updated Copyright Email Addresses
...
Updated the copyright email addresses for Robert James Kaes. The
users.sourceforge.net address should always exist.
2005-07-12 17:39:44 +00:00
Robert James Kaes
35196f7d8e
Changed some of the variable types so that the code compiles cleanly
...
on other operating systems. (Used cf.sourceforge.net as the test
system for cross compiling.)
2004-08-24 16:33:00 +00:00
Robert James Kaes
badc7673d0
Merged in changes from 1.6.3
2004-08-10 21:24:24 +00:00
Robert James Kaes
aee5a63849
Removed unnecessary casts (mostly dealing with memory allocation.) I
...
should never have added them in the first place. They don't really
buy anything, and they can hide bugs.
2004-02-13 21:27:42 +00:00
Robert James Kaes
7eb4eba381
# Merged in changes from the stable 1.6 branch.
2003-08-07 15:31:20 +00:00
Robert James Kaes
15870a9582
Added appropriate casts (void*) casts to allow the code to compile
...
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-07-31 23:44:52 +00:00
Robert James Kaes
77ca1c8ce0
# Changed all the for calls to use the != test rather than < test.
...
The change was recommended in the C/C++ User Journal magazine.
2003-05-31 23:02:21 +00:00
Robert James Kaes
648e8f1438
# Changed it again to this time use the TINYPROXY_DEBUG environment
...
variable to determine whether to wait for a connection from GDB.
2003-04-16 18:04:58 +00:00
Robert James Kaes
4a942bc59a
# The programmer is now made to _explicitly_ enable the GDB support in
...
the child handling function.
2003-04-16 16:39:23 +00:00
Robert James Kaes
99ec965544
# (child_main): If this is a debugging build output the child process
...
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.
2003-03-13 19:30:19 +00:00
Robert James Kaes
c826b18437
(child_main): Cleaned up the notice string to be more clear why a
...
child is being closed.
2002-11-21 21:54:09 +00:00
Robert James Kaes
ac881909bf
(child_main): Check to make sure memory could be allocated to handle
...
the child request.
(child_main_loop): Added a call to truncate_log_file() when the log
file is to be rotated.
2002-10-03 20:33:09 +00:00
Robert James Kaes
e50d0c4072
(child_make): Reset the various signals to the default signal handler so that the children can be properly destroyed.
2002-06-27 16:29:21 +00:00
Robert James Kaes
8a9db93977
(child_main_loop): Moved the filter re-initiation code into the loop. This code is activated whenever the SIGHUP signal is received.
2002-06-15 17:31:31 +00:00
Robert James Kaes
e440dee245
(child_main): Added a DEBUG call to let me know which process has accepted a connection. This is needed for debugging using "gdb".
2002-06-05 17:02:15 +00:00
Robert James Kaes
360deb4568
Changed the tests on the return value from malloc_shared_memory() to make tinyproxy more portable, since we can't be certain that "if (!ret_value)" would actually detect a mmap() error.
2002-05-29 20:49:55 +00:00
Robert James Kaes
b3e657a00e
Changed from using a threading model to a standard pre-forked model.
...
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.
2002-05-26 18:45:26 +00:00