mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-04 08:15:15 +00:00
Pass closure to callback, not the callback pointer itself.
This commit is contained in:
@@ -132,7 +132,7 @@ sudo_suspend_parent_v1(int signo, pid_t my_pid, pid_t my_pgrp, pid_t cmnd_pid,
|
|||||||
|
|
||||||
/* Run callback before we suspend. */
|
/* Run callback before we suspend. */
|
||||||
if (callback != NULL)
|
if (callback != NULL)
|
||||||
callback(callback, signo);
|
callback(closure, signo);
|
||||||
|
|
||||||
if (signo == SIGTSTP) {
|
if (signo == SIGTSTP) {
|
||||||
memset(&sa, 0, sizeof(sa));
|
memset(&sa, 0, sizeof(sa));
|
||||||
@@ -151,7 +151,7 @@ sudo_suspend_parent_v1(int signo, pid_t my_pid, pid_t my_pgrp, pid_t cmnd_pid,
|
|||||||
|
|
||||||
/* Run callback on resume. */
|
/* Run callback on resume. */
|
||||||
if (callback != NULL)
|
if (callback != NULL)
|
||||||
callback(callback, SIGCONT);
|
callback(closure, SIGCONT);
|
||||||
|
|
||||||
if (saved_pgrp != -1) {
|
if (saved_pgrp != -1) {
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user