1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/www/xitami/files/patch-ab
Steve Price 9141fabc31 Initial import of Xitami version 2.3d.
A fast, portable multithreaded web server.

PR:		4770
Submitted by:	Ian Vaudrey <i.vaudrey@cableinet.co.uk>
1998-08-09 00:28:23 +00:00

22 lines
763 B
Plaintext

--- src/smt/xitami.c.orig Sat Aug 8 15:48:29 1998
+++ src/smt/xitami.c Sat Aug 8 15:50:15 1998
@@ -163,13 +163,17 @@
fclose (stdout); /* Kill standard output */
fclose (stderr); /* and standard error */
}
- else
+ else if (*background == '0')
+ {
puts (COPYRIGHT);
+ }
if (*background == '1')
{
puts ("Moving into the background");
process_server (NULL, NULL); /* Put process into background */
+ if (process_server (NULL, "/var/run/xitami.pid") != 0)
+ exit (EXIT_FAILURE);
}
/* Initialise SMT and run the HTTP agent until it has finished */
server_name = "Xitami";