[odamex-bug-reporter] [Bug 696] -pidfile - Output server process ID to a specified file

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Wed, 04 May 2011 23:37:13 +0000

http://odamex.net/bugs/show_bug.cgi?id=696

--- Comment #4 from Kyle <elykdav@xxxxxxxxx> 2011-05-04 23:37:13 UTC ---
This works:

Index: server/src/i_main.cpp
===================================================================
--- server/src/i_main.cpp    (revision 2159)
+++ server/src/i_main.cpp    (working copy)
@@ -193,7 +193,7 @@
     exit(0);

     pidfile = Args.CheckValue("-fork");
-    if (!pidfile)
+    if (!pidfile || !strncmp(pidfile, "-", 1))
         pidfile = "doomsv.pid";

     pid = getpid();

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts: