[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sshd signal blocking on aptitude upgrade

Alexander Samad wrote:
> But I was looking for a quick c program that would simple unblock the
> signal SIGWINCH on the current thread

see sigprocmask(2)

Here is a quick attempt at a program. It appears to work. If not, you
can keep both pieces.

#include <unistd.h>
#include <signal.h>

int main() {
    sigset_t set;

    sigprocmask(SIG_SETMASK, &set, NULL);
    execl("/bin/sh", "sh", NULL);

Reply to: