/[gentoo-x86]/net-misc/midentd/files/2.3.1-pidfile.patch
Gentoo

Contents of /net-misc/midentd/files/2.3.1-pidfile.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Fri May 14 02:25:03 2004 UTC (15 years, 10 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
  Have the daemon create a .pid file so that the init.d script can kill it and
  make the xinetd entry refer to the service auth instead of identd #50775 by
  Remco Barendse

1 vapier 1.1 --- midentd.orig 2004-05-13 21:57:43.642441512 -0400
2     +++ midentd 2004-05-13 22:01:10.165045304 -0400
3     @@ -74,6 +75,7 @@
4     close STDIN; open STDIN, "/dev/null";
5     close STDOUT; open STDOUT, ">/dev/null";
6     close STDERR; open STDERR, ">/dev/null";
7     + open PIDFILE, ">/var/run/midentd.pid";
8     umask 0466;
9     &logger ("Daemon started, listening.");
10     # FIXME, maximum number of connections should be limited
11     @@ -87,6 +89,8 @@
12     if ($< != $uid || $> != $uid) {
13     die "Can't change UID\n";
14     }
15     + print PIDFILE $$;
16     + close PIDFILE;
17     while (accept (SOCKET, SERVER)) {
18     $in = *SOCKET;
19     $out = *SOCKET;

  ViewVC Help
Powered by ViewVC 1.1.20