]> git.feebdaed.xyz Git - linuxyz.git/commitdiff
okay
authorseantywork <seantywork@gmail.com>
Tue, 16 Dec 2025 01:54:40 +0000 (10:54 +0900)
committerseantywork <seantywork@gmail.com>
Tue, 16 Dec 2025 01:54:40 +0000 (10:54 +0900)
fork-exec/fork-exec.c

index 27124d5a65e772e3975502a634c935bbd1470e9e..9edcb9e92be844c2ae93b074746ced805cf30d26 100644 (file)
@@ -19,7 +19,7 @@ int main( void ) {
                execvp( "ls", argv );
        }
 
-       wait( 2 );
+       sleep(2);
 
        printf( "child pid: %d\n", pid);
        printf( "parent process pid: %d\n", (int)getpid() );