Brackets.

This commit is contained in:
Bandie 2018-03-18 14:42:49 +01:00
parent 731e893580
commit 163a31070d
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD

View File

@ -48,9 +48,9 @@ void exec_failed(){
void sig_handler(int signo){
if(signo == SIGTERM || signo == SIGINT){
// Unverify
if(access(VRFFILE, F_OK) != -1){ //File exists?
if(access(VRFFILE, F_OK) != -1) //File exists?
unlink(VRFFILE);
}
exit(0);
}
}
@ -84,15 +84,15 @@ int main(int argc, char *argv[]){
dup2(fd, 1);
dup2(fd, 2);
if(execlp(PROGRAM, PROGRAM, NULL) < 0){
if(execlp(PROGRAM, PROGRAM, NULL) < 0)
exec_failed();
}
close(fd);
}
else{
if(execlp(PROGRAM, PROGRAM, NULL) < 0){
if(execlp(PROGRAM, PROGRAM, NULL) < 0)
exec_failed();
}
}
}
else {