mirror of
https://github.com/drasko/codezero.git
synced 2026-02-11 01:13:16 +01:00
Added conditional configuration flag -c to build.py
This commit is contained in:
@@ -23,7 +23,8 @@ int fileio(void)
|
||||
memset(filename, 0, 128);
|
||||
sprintf(filename, "/home/bahadir/newfile%d.txt", tid);
|
||||
if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, S_IRWXU)) < 0) {
|
||||
test_printf("OPEN: %d", errno);
|
||||
test_printf("OPEN: %d", -errno);
|
||||
test_printf("While trying to open %s\n", filename);
|
||||
goto out_err;
|
||||
}
|
||||
test_printf("%d: Created %s\n", tid, filename);
|
||||
|
||||
@@ -17,7 +17,7 @@ int forktest(void)
|
||||
|
||||
|
||||
/* 16 forks */
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int i = 0; i < 1; i++) {
|
||||
test_printf("%d: Forking...\n", getpid());
|
||||
if (fork() < 0)
|
||||
goto out_err;
|
||||
|
||||
Reference in New Issue
Block a user