Lines Matching +full:display +full:- +full:hint
64 if (pipe(p) == -1) { in ssh_askpass()
69 if ((pid = fork()) == -1) { in ssh_askpass()
76 if (dup2(p[1], STDOUT_FILENO) == -1) in ssh_askpass()
87 ssize_t r = read(p[0], buf + len, sizeof(buf) - 1 - len); in ssh_askpass()
89 if (r == -1 && errno == EINTR) in ssh_askpass()
94 } while (sizeof(buf) - 1 - len > 0); in ssh_askpass()
98 while ((ret = waitpid(pid, &status, 0)) == -1) in ssh_askpass()
102 if (ret == -1 || !WIFEXITED(status) || WEXITSTATUS(status) != 0) { in ssh_askpass()
114 #define RP_ASK_PERMISSION 0x8000 /* pass hint to askpass for confirm UI */
130 if (((s = getenv("DISPLAY")) != NULL && *s != '\0') || in read_passphrase()
244 pid_t pid = -1; in notify_start()
265 if (getenv("DISPLAY") == NULL && getenv("WAYLAND_DISPLAY") == NULL && in notify_start()
268 debug3_f("cannot notify: no display"); in notify_start()
272 if ((pid = fork()) == -1) { in notify_start()
279 if (stdfd_devnull(1, 1, 0) == -1) in notify_start()
282 setenv("SSH_ASKPASS_PROMPT", "none", 1); /* hint to UI */ in notify_start()
290 if (pid != -1) in notify_start()
294 ret->pid = pid; in notify_start()
295 ret->osigchld = osigchld; in notify_start()
308 if (ctx != NULL && fmt != NULL && ctx->pid == -1) { in notify_complete()
320 if (ctx == NULL || ctx->pid <= 0) { in notify_complete()
324 kill(ctx->pid, SIGTERM); in notify_complete()
325 while ((ret = waitpid(ctx->pid, NULL, 0)) == -1) { in notify_complete()
329 if (ret == -1) in notify_complete()
331 ssh_signal(SIGCHLD, ctx->osigchld); in notify_complete()