On 06/26, Dev Jain wrote:
+int main(int argc, char *argv[])...
+{
+ struct sigaction act, act2;
+ sigset_t *set, *oldset;
+ set = malloc(sizeof(sigset_t *));Why malloc() ?
+ if (!set)
+ ksft_exit_fail_perror("malloc");
+
+ oldset = malloc(sizeof(sigset_t *));
Can't you simply do
sigset_t set, oldset;
and then use sigemptyset(&set) / etc ?
Oleg.