Brackets.
This commit is contained in:
parent
731e893580
commit
163a31070d
@ -48,9 +48,9 @@ void exec_failed(){
|
|||||||
void sig_handler(int signo){
|
void sig_handler(int signo){
|
||||||
if(signo == SIGTERM || signo == SIGINT){
|
if(signo == SIGTERM || signo == SIGINT){
|
||||||
// Unverify
|
// Unverify
|
||||||
if(access(VRFFILE, F_OK) != -1){ //File exists?
|
if(access(VRFFILE, F_OK) != -1) //File exists?
|
||||||
unlink(VRFFILE);
|
unlink(VRFFILE);
|
||||||
}
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -84,15 +84,15 @@ int main(int argc, char *argv[]){
|
|||||||
|
|
||||||
dup2(fd, 1);
|
dup2(fd, 1);
|
||||||
dup2(fd, 2);
|
dup2(fd, 2);
|
||||||
if(execlp(PROGRAM, PROGRAM, NULL) < 0){
|
if(execlp(PROGRAM, PROGRAM, NULL) < 0)
|
||||||
exec_failed();
|
exec_failed();
|
||||||
}
|
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(execlp(PROGRAM, PROGRAM, NULL) < 0){
|
if(execlp(PROGRAM, PROGRAM, NULL) < 0)
|
||||||
exec_failed();
|
exec_failed();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user