Displaying 8 results from an estimated 8 matches for "prev_mask".
Did you mean:
ev_mask
2001 May 03
1
[PATCH]: Workaround a security leak on Windows
...===
RCS file: /cvs/openssh_cvs/ssh-agent.c,v
retrieving revision 1.54
diff -u -p -r1.54 ssh-agent.c
--- ssh-agent.c 2001/04/04 01:53:21 1.54
+++ ssh-agent.c 2001/05/03 12:19:50
@@ -714,6 +714,9 @@ main(int ac, char **av)
#ifdef HAVE_SETRLIMIT
struct rlimit rlim;
#endif
+#ifdef HAVE_CYGWIN
+ int prev_mask;
+#endif
pid_t pid;
char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid];
extern int optind;
@@ -805,10 +808,19 @@ main(int ac, char **av)
memset(&sunaddr, 0, sizeof(sunaddr));
sunaddr.sun_family = AF_UNIX;
strlcpy(sunaddr.sun_path, socket_name, sizeof(sunaddr.sun_path));
+#...
2019 May 19
4
most robust way to call R API functions from a secondary thread
...before the threads are created because this might
* fail in allocation or with pointer protection stack overflow
*/
SEXP cont = PROTECT(R_MakeUnwindCont());
/* block all signals:
*
* do this before the threads are created such that they inherit the mask
*/
sigset_t block_set, prev_mask;
sigfillset(&block_set);
pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
// suspend interrupts:
Rboolean __oldsusp__ = R_interrupts_suspended;
R_interrupts_suspended = TRUE;
// create threads running threaded_fun() ...
for(;;) {
// timed blocking check if thre...
2019 May 20
1
most robust way to call R API functions from a secondary thread
...n allocation or with pointer protection stack overflow
>> */
>> SEXP cont = PROTECT(R_MakeUnwindCont());
>> /* block all signals:
>> *
>> * do this before the threads are created such that they inherit the mask
>> */
>> sigset_t block_set, prev_mask;
>> sigfillset(&block_set);
>> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>> // suspend interrupts:
>> Rboolean __oldsusp__ = R_interrupts_suspended;
>> R_interrupts_suspended = TRUE;
>> // create threads running threaded_fun()...
2023 Jun 17
2
[PATCH] ssh-agent: add systemd socket-based activation
...", socket_dir,
- (long)parent_pid);
+ (long)parent_pid);
} else {
/* Try to use specified agent socket */
socket_dir[0] = '\0';
@@ -2161,14 +2195,16 @@ main(int ac, char **av)
* Create socket early so it will exist before command gets run from
* the parent.
*/
- prev_mask = umask(0177);
- sock = unix_listener(socket_name, SSH_LISTEN_BACKLOG, 0);
- if (sock < 0) {
- /* XXX - unix_listener() calls error() not perror() */
- *socket_name = '\0'; /* Don't unlink any existing file */
- cleanup_exit(1);
+ if (sock == 0) {
+ prev_mask = umask(0177);
+ so...
2019 May 20
0
[External] most robust way to call R API functions from a secondary thread
...use this might
> * fail in allocation or with pointer protection stack overflow
> */
> SEXP cont = PROTECT(R_MakeUnwindCont());
>
> /* block all signals:
> *
> * do this before the threads are created such that they inherit the mask
> */
> sigset_t block_set, prev_mask;
> sigfillset(&block_set);
> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>
> // suspend interrupts:
> Rboolean __oldsusp__ = R_interrupts_suspended;
> R_interrupts_suspended = TRUE;
>
> // create threads running threaded_fun() ...
>
> for(;...
2016 Mar 08
1
[PATCH] fish: reset the console on ^Z RHBZ#1213844
Patch registers SIGTSTP hook where it sends reset terminal color
control sequence using write and fsync.
Handler is installed only if signal is not being ignored.
Patch uses rl_free_line_state and rl_cleanup_after_signal to unhook
readline from terminal, then it calls original TSTP handler using
approach in URL below and again hooks readline using
rl_reset_after_signal.
Handling is based on code
2019 May 20
0
most robust way to call R API functions from a secondary thread
...t; * fail in allocation or with pointer protection stack overflow
> */
> SEXP cont = PROTECT(R_MakeUnwindCont());
>
> /* block all signals:
> *
> * do this before the threads are created such that they inherit the mask
> */
> sigset_t block_set, prev_mask;
> sigfillset(&block_set);
> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>
> // suspend interrupts:
> Rboolean __oldsusp__ = R_interrupts_suspended;
> R_interrupts_suspended = TRUE;
>
> // create threads running threaded_fun() ...
&g...
2003 Sep 10
3
[PATCH] No extern declarations of optarg & co if getopt.h is available
...====================================
RCS file: /cvs/openssh_cvs/ssh-agent.c,v
retrieving revision 1.122
diff -p -u -r1.122 ssh-agent.c
--- ssh-agent.c 21 Aug 2003 23:34:41 -0000 1.122
+++ ssh-agent.c 10 Sep 2003 18:59:01 -0000
@@ -1013,8 +1013,10 @@ main(int ac, char **av)
#ifdef HAVE_CYGWIN
int prev_mask;
#endif
+#ifndef HAVE_GETOPT_H
extern int optind;
extern char *optarg;
+#endif
pid_t pid;
char pidstrbuf[1 + 3 * sizeof pid];
Index: ssh-keygen.c
===================================================================
RCS file: /cvs/openssh_cvs/ssh-keygen.c,v
retrieving revision 1.111
diff -...