su: (pty) remove unnecessary call

The pty code has to save the original signal mask without application
assistance.

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-08-08 15:32:13 +02:00
parent 63869b842f
commit 46737a7332
1 changed files with 0 additions and 3 deletions

View File

@ -498,9 +498,6 @@ static void create_watching_parent(struct su_context *su)
if (su->force_pty) {
struct ul_pty_callbacks *cb;
/* no-op, just save original signal mask to pty */
sigprocmask(SIG_BLOCK, NULL, ul_pty_get_orig_sigset(su->pty));
/* set callbacks */
ul_pty_set_callback_data(su->pty, (void *) su);