|
From: Andy G. <ag...@us...> - 2002-11-20 02:44:47
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv31504/ospmd/ospmd
Modified Files:
ospmd.cpp
Log Message:
use /var/ospmd.conf for config file
Index: ospmd.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/ospmd.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ospmd.cpp 20 Nov 2002 02:14:03 -0000 1.3
+++ ospmd.cpp 20 Nov 2002 02:44:44 -0000 1.4
@@ -174,7 +174,7 @@
exited = 1;
unlink(OSPMD_SERVER_PATH);
- pm_pol->save_to_file("ospmd.conf");
+ pm_pol->save_to_file("/var/ospmd.conf");
delete(pm_pol);
delete(pm_iface);
@@ -425,7 +425,7 @@
exit(1);
}
- res = init_pm_policy("ospmd.conf");
+ res = init_pm_policy("/var/ospmd.conf");
if (res < 0)
{
exit(1);
@@ -504,7 +504,7 @@
if (!FD_ISSET(fd, &testfds))
continue;
-
+
OSPMD_DBG(OSPM_INFO, "checking fd %d\n", fd);
/* Is this activity on the server fd? */
if (fd == server_sockfd)
@@ -512,7 +512,7 @@
int client_sockfd;
OSPMD_DBG(OSPM_INFO, "received a request on server_sockfd\n");
-
+
/* Upon return client_len will have the correct value */
client_len = sizeof(client_address);
client_sockfd = accept(server_sockfd,
@@ -667,7 +667,7 @@
in_data = alloca(hdr.data_len);
- /*
+ /*
* handle initial request
*/
OSPMD_DBG(OSPM_NOISE, "Reading %d bytes from socket\n", hdr.data_len);
|