From: Julian Seward Date: Mon, 20 Aug 2012 10:40:02 +0000 (+0000) Subject: Fix POST(posix_spawn) on Darwin so it marks the returned pid as defined. X-Git-Tag: svn/VALGRIND_3_9_0~757 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed29b0b6a8f835d7ee04959ee18fddd51ff44ca8;p=thirdparty%2Fvalgrind.git Fix POST(posix_spawn) on Darwin so it marks the returned pid as defined. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12883 --- diff --git a/coregrind/m_syswrap/syswrap-darwin.c b/coregrind/m_syswrap/syswrap-darwin.c index c032fe2bb6..292ed548c3 100644 --- a/coregrind/m_syswrap/syswrap-darwin.c +++ b/coregrind/m_syswrap/syswrap-darwin.c @@ -2955,7 +2955,9 @@ PRE(posix_spawn) POST(posix_spawn) { vg_assert(SUCCESS); - //POST_MEM_WRITE( ARG1, sizeof(vki_pid_t) ); + if (ARG1 != 0) { + POST_MEM_WRITE( ARG1, sizeof(vki_pid_t) ); + } }