git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3552 e7ae566f-a301-0410-adde-c780ea21d3b5
james authored on 2008/11/21 07:37:43... | ... |
@@ -84,6 +84,7 @@ man_help () |
84 | 84 |
msg (M_CLIENT, " where action is reply string."); |
85 | 85 |
msg (M_CLIENT, "net : (Windows only) Show network info and routing table."); |
86 | 86 |
msg (M_CLIENT, "password type p : Enter password p for a queried OpenVPN password."); |
87 |
+ msg (M_CLIENT, "pid : Show process ID of the current OpenVPN process."); |
|
87 | 88 |
#ifdef ENABLE_PKCS11 |
88 | 89 |
msg (M_CLIENT, "pkcs11-id-count : Get number of available PKCS#11 identities."); |
89 | 90 |
msg (M_CLIENT, "pkcs11-id-get index : Get PKCS#11 identity at index."); |
... | ... |
@@ -976,6 +977,10 @@ man_dispatch_command (struct management *man, struct status_output *so, const ch |
976 | 976 |
msg (M_CLIENT, "Management Version: %d", MANAGEMENT_VERSION); |
977 | 977 |
msg (M_CLIENT, "END"); |
978 | 978 |
} |
979 |
+ else if (streq (p[0], "pid")) |
|
980 |
+ { |
|
981 |
+ msg (M_CLIENT, "SUCCESS: pid=%d", openvpn_getpid ()); |
|
982 |
+ } |
|
979 | 983 |
else if (streq (p[0], "signal")) |
980 | 984 |
{ |
981 | 985 |
if (man_need (man, p, 1, 0)) |
... | ... |
@@ -247,6 +247,11 @@ COMMAND -- net |
247 | 247 |
of the system network adapter list and routing table based |
248 | 248 |
on information returned by the Windows IP helper API. |
249 | 249 |
|
250 |
+COMMAND -- pid |
|
251 |
+-------------- |
|
252 |
+ |
|
253 |
+Shows the process ID of the current OpenVPN process. |
|
254 |
+ |
|
250 | 255 |
COMMAND -- password and username |
251 | 256 |
-------------------------------- |
252 | 257 |
|