[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] fix building on nommu systems (no fork)

From: Mike Frysinger
Subject: [patch] fix building on nommu systems (no fork)
Date: Sun, 17 Jan 2010 16:49:01 -0500
User-agent: KMail/1.12.4 (Linux/; KDE/4.3.4; x86_64; ; )

one of the tests (ditto) uses fork() when it could just as easily use vfork -- 
it simply does an exec, and it already uses _exit

--- a/test/ditto.c
+++ b/test/ditto.c
@@ -161,7 +161,7 @@ open_tty(char *path)
     sprintf(s_option, "-S%s/%d", slave_name, aslave);
-    if (fork()) {
+    if (vfork() == 0) {
        execlp("xterm", "xterm", s_option, "-title", path, (char *) 0);

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]