]> git.neil.brown.name Git - portmap.git/log
portmap.git
18 years agoSignal handling fixes.
Neil Brown [Fri, 20 Apr 2007 02:42:08 +0000 (12:42 +1000)]
Signal handling fixes.

Ignore sigchld and sigpipe.
And as reap is now not used, don't compile it.

18 years agosyslog fixes
Neil Brown [Fri, 20 Apr 2007 02:42:07 +0000 (12:42 +1000)]
syslog fixes

Use LOG_DAEMON rather than LOG_MAIL, and add LOG_NDELAY.
Fedora Likes LOG_AUTH
SuSE Likes LOG_AUTH
Debian Likes LOG_DAEMON

I prefer LOG_DAEMON.

18 years agoProtect errno inside signal handler.
Alexander Achenbach [Fri, 20 Apr 2007 02:42:06 +0000 (12:42 +1000)]
Protect errno inside signal handler.

From: Alexander Achenbach <xela@slit.de>

If a signal handler modifies errno at random times,
other code can be badly confused.  So in 'reap', save
and restore it.

(From debian)

18 years agoCorrect typo in error message: udp -> tcp
Neil Brown [Fri, 20 Apr 2007 02:42:05 +0000 (12:42 +1000)]
Correct typo in error message: udp -> tcp

18 years agoClean up more warnings.
Neil Brown [Fri, 20 Apr 2007 02:42:03 +0000 (12:42 +1000)]
Clean up more warnings.

Add -Wall -Wstrict-prototypes and clean up associated
warnings.

18 years agoMakefile fixes for clean compile.
Neil Brown [Fri, 20 Apr 2007 02:41:38 +0000 (12:41 +1000)]
Makefile fixes for clean compile.

Remove old stuff from Makefile, and remove daemon.c and strerror.c
as they really aren't needed.
Now get a clean compile.

18 years agoAdd some missing #includes
Neil Brown [Fri, 20 Apr 2007 02:41:38 +0000 (12:41 +1000)]
Add some missing #includes

to remove more compile warning.

18 years agoAdd lots of needed type-casts.
Neil Brown [Fri, 20 Apr 2007 02:41:37 +0000 (12:41 +1000)]
Add lots of needed type-casts.

This removes a lot of noisy warnings so that real bugs might become visible.

18 years agoRemove #define of perror.
Neil Brown [Fri, 20 Apr 2007 02:41:29 +0000 (12:41 +1000)]
Remove #define of perror.

Original code defined a new perror to send error messages via
syslog so that perror calls in the rpc library would be redefined as well,
and the had -Dperror=xperror in the Makefile to override this.

Debian and Fedora just removed the "-Dperror=.."
SuSE fixed up problems by adding some more "#undef perror".

I have taken the Debian/Fedora approach and tidied up related bits of code.

18 years agoInitial checkin of portmap_beta5 portmap_5beta
Neil Brown [Fri, 20 Apr 2007 00:35:59 +0000 (10:35 +1000)]
Initial checkin of portmap_beta5

Both the current Debian and SuSE distros have identical .tar.gz
containing these files.