Serenity Operating System
at master 21 lines 329 B view raw
1/* 2 * Copyright (c) 2018-2020, the SerenityOS developers. 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#include <sys/stat.h> 8#include <unistd.h> 9 10int main() 11{ 12 if (!fork()) { 13 for (;;) { 14 mkdir("/tmp/x", 0666); 15 rmdir("/tmp/x"); 16 } 17 } 18 for (;;) { 19 chdir("/tmp/x"); 20 } 21}