2020-08-01 18:49:01 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-01 18:49:01 -03:00
|
|
|
*/
|
|
|
|
|
|
2020-02-01 05:23:46 -03:00
|
|
|
#include <sys/stat.h>
|
2020-08-01 18:49:01 -03:00
|
|
|
#include <unistd.h>
|
2020-02-01 05:23:46 -03:00
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
if (!fork()) {
|
|
|
|
|
for (;;) {
|
|
|
|
|
mkdir("/tmp/x", 0666);
|
|
|
|
|
rmdir("/tmp/x");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for (;;) {
|
|
|
|
|
chdir("/tmp/x");
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|