aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/ls.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-10-19 14:30:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-10-19 14:30:30 -0400
commiteddb9419463e266c79d422ce5c4bbc91e579fbcd (patch)
treeb20448bfb1cdfc331a93d49bb4728da290860424 /src/firejail/ls.c
parentreplaced exit with _exit in forked child (diff)
downloadfirejail-eddb9419463e266c79d422ce5c4bbc91e579fbcd.tar.gz
firejail-eddb9419463e266c79d422ce5c4bbc91e579fbcd.tar.zst
firejail-eddb9419463e266c79d422ce5c4bbc91e579fbcd.zip
replaced exit with _exit in forked child
Diffstat (limited to 'src/firejail/ls.c')
-rw-r--r--src/firejail/ls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/firejail/ls.c b/src/firejail/ls.c
index 39efaa0a6..dba82be0b 100644
--- a/src/firejail/ls.c
+++ b/src/firejail/ls.c
@@ -358,7 +358,7 @@ void sandboxfs(int op, pid_t pid, const char *path1, const char *path2) {
358 fprintf(stderr, "Error: Cannot read %s\n", fname1); 358 fprintf(stderr, "Error: Cannot read %s\n", fname1);
359 exit(1); 359 exit(1);
360 } 360 }
361 exit(0); 361 _exit(0);
362 } 362 }
363 363
364 // wait for the child to finish 364 // wait for the child to finish
@@ -391,7 +391,7 @@ void sandboxfs(int op, pid_t pid, const char *path1, const char *path2) {
391 exit(1); 391 exit(1);
392 } 392 }
393 fclose(fp); 393 fclose(fp);
394 exit(0); 394 _exit(0);
395 } 395 }
396 396
397 // wait for the child to finish 397 // wait for the child to finish
@@ -445,7 +445,7 @@ void sandboxfs(int op, pid_t pid, const char *path1, const char *path2) {
445 fprintf(stderr, "Error: Cannot read %s\n", src_fname); 445 fprintf(stderr, "Error: Cannot read %s\n", src_fname);
446 exit(1); 446 exit(1);
447 } 447 }
448 exit(0); 448 _exit(0);
449 } 449 }
450 450
451 // wait for the child to finish 451 // wait for the child to finish
@@ -494,7 +494,7 @@ void sandboxfs(int op, pid_t pid, const char *path1, const char *path2) {
494 } 494 }
495 } 495 }
496 496
497 exit(0); 497 _exit(0);
498 } 498 }
499 499
500 // wait for the child to finish 500 // wait for the child to finish