aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-12-26 02:58:43 +0000
committerNIIBE Yutaka <[email protected]>2023-12-26 04:29:49 +0000
commit7cde533ce8eaf1713ca1b6aab4470ce1a68c45d9 (patch)
tree07d285e55f1267f2704c958d198088cb82d7ff43 /agent/gpg-agent.c
parentagent,kbx: Fix reliable_homedir_inotify (1/2). (diff)
downloadgnupg-7cde533ce8eaf1713ca1b6aab4470ce1a68c45d9.tar.gz
gnupg-7cde533ce8eaf1713ca1b6aab4470ce1a68c45d9.zip
agent,kbx: Fix reliable_homedir_inotify (2/2).
* agent/gpg-agent.c (main): The value of reliable_homedir_inotify doesn't not related to nodetach, and it's only zero in the specific condition. * kbx/keyboxd.c (handle_connections): Remove the last argument. (main): Remove reliable_homedir_inotify, as it's always one. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r--agent/gpg-agent.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 7182e1f1a..6ffff6eb3 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1093,7 +1093,7 @@ main (int argc, char **argv)
int gpgconf_list = 0;
gpg_error_t err;
struct assuan_malloc_hooks malloc_hooks;
- int reliable_homedir_inotify = 0;
+ int reliable_homedir_inotify = 1;
early_system_init ();
@@ -1819,14 +1819,14 @@ main (int argc, char **argv)
log_get_prefix (&oldflags);
log_set_prefix (NULL, oldflags | GPGRT_LOG_RUN_DETACHED);
opt.running_detached = 1;
-
- /* Unless we are running with a program given on the command
- * line we can assume that the inotify things works and thus
- * we can avoid the regular stat calls. */
- if (!argc)
- reliable_homedir_inotify = 1;
}
+ /* When we are running with a program given on the command
+ * line, the inotify things may not work well and thus
+ * we cannot avoid the regular stat calls. */
+ if (argc)
+ reliable_homedir_inotify = 0;
+
{
struct sigaction sa;