- restore original UID before deleting test directory
- do not assume that SIGUSR1 signal is set to default action
rm_sema(sem_id_1);
/* Remove the temporary directory */
+ seteuid(getuid());
tst_rmdir();
/*
rm_sema(sem_id_2);
/* Remove the temporary directory */
+ seteuid(getuid());
tst_rmdir();
/*
key = (key_t) getpid() ;
+ signal(SIGUSR1, SIG_DFL);
+
sigemptyset(&sigset);
sigaddset(&sigset,SIGUSR1);
sigprocmask(SIG_BLOCK,&sigset,NULL);
key = (key_t)getpid() ;
+ signal(SIGUSR1, SIG_DFL);
+
sigemptyset(&sigset);
sigaddset(&sigset,SIGUSR1);
sigprocmask(SIG_BLOCK,&sigset,NULL);