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
1 changed files with 6 additions and 6 deletions

View File

@ -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 {