mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Extended gpg-connect-agent.
New "GETINFO pid" command for scdaemon and gpg-agent.
This commit is contained in:
parent
31c19d1d68
commit
ed7d2d72c6
7 changed files with 472 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
|||
2007-10-02 Werner Koch <wk@g10code.com>
|
||||
|
||||
* command.c (cmd_getinfo): Add "pid" subcommand.
|
||||
|
||||
2007-10-01 Werner Koch <wk@g10code.com>
|
||||
|
||||
* scdaemon.c (create_server_socket): Use Assuan socket wrappers
|
||||
|
|
|
@ -1452,6 +1452,7 @@ cmd_unlock (assuan_context_t ctx, char *line)
|
|||
Supported values of WHAT are:
|
||||
|
||||
version - Return the version of the program.
|
||||
pid - Return the process id of the server.
|
||||
|
||||
socket_name - Return the name of the socket.
|
||||
|
||||
|
@ -1476,6 +1477,13 @@ cmd_getinfo (assuan_context_t ctx, char *line)
|
|||
const char *s = VERSION;
|
||||
rc = assuan_send_data (ctx, s, strlen (s));
|
||||
}
|
||||
else if (!strcmp (line, "pid"))
|
||||
{
|
||||
char numbuf[50];
|
||||
|
||||
snprintf (numbuf, sizeof numbuf, "%lu", (unsigned long)getpid ());
|
||||
rc = assuan_send_data (ctx, numbuf, strlen (numbuf));
|
||||
}
|
||||
else if (!strcmp (line, "socket_name"))
|
||||
{
|
||||
const char *s = scd_get_socket_name ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue