dedicated.c
changeset 1406 2d5baabe4046
parent 1301 313804601383
child 1414 d7fa2709bf86
--- a/dedicated.c	Wed Feb 23 00:07:03 2005 +0000
+++ b/dedicated.c	Wed Feb 23 09:13:12 2005 +0000
@@ -49,8 +49,8 @@
 void DedicatedFork(void)
 {
 	/* Fork the program */
-	_dedicated_pid = fork();
-	switch (_dedicated_pid) {
+	pid_t pid = fork();
+	switch (pid) {
 		case -1:
 			perror("Unable to fork");
 			exit(1);
@@ -76,7 +76,7 @@
 		default:
 			// We're the parent
 			printf("Loading dedicated server...\n");
-			printf("  - Forked to background with pid %d\n", _dedicated_pid);
+			printf("  - Forked to background with pid %d\n", pid);
 			exit(0);
 	}
 }