mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
15 lines
348 B
C
15 lines
348 B
C
|
/*
|
||
|
* Return the full pathname of the global mutex that Pageant uses at
|
||
|
* startup to atomically decide whether to be a server or a client.
|
||
|
*/
|
||
|
|
||
|
#include "putty.h"
|
||
|
|
||
|
char *agent_mutex_name(void)
|
||
|
{
|
||
|
char *username = get_username();
|
||
|
char *mutexname = dupprintf("Local\\pageant-mutex.%s", username);
|
||
|
sfree(username);
|
||
|
return mutexname;
|
||
|
}
|