OSDN Git Service

Patch over bionic's vfork for now
authorDylan Simon <dylan@dylex.net>
Wed, 20 Jan 2010 05:31:03 +0000 (00:31 -0500)
committerDylan Simon <dylan@dylex.net>
Wed, 20 Jan 2010 05:53:52 +0000 (00:53 -0500)
Bionic's vfork is rather broken, and seems to corrupt the stack,
especially when the parent returns before the child completes.   For
now, replace vfork with fork until the issues are sorted out.

include/android.h

index 28c6b44..c81ae47 100644 (file)
@@ -49,4 +49,7 @@ struct __sFILE;
 int addmntent(struct __sFILE *, const struct mntent *);
 struct mntent *getmntent_r(struct __sFILE *fp, struct mntent *mnt, char *buf, int buflen);
 
+/* bionic's vfork is rather broken; for now a terrible bandaid: */
+#define vfork fork
+
 #endif