[PD-dev] [PD] Problem in os x 10.5.1?
David Plans Casal
dataflow at davidcasal.com
Thu Feb 14 19:21:32 CET 2008
On 1 Feb 2008, at 14:54, Russell Bryant wrote:
> Try the attached patch to see if moving building the sys_guicmd to
> before the
> fork fixes it. If it doesn't, try commenting out the call to
> Between those two, you should be able to find out what it's
> complaining about.
So, you may have heard 0.40.1 was the bugfix that never was (my
I've now come to grips with packages/darwin_app and I'm building
successfully on 10.5.1, so can test patches to resolve the fork()
issue easily enough.
However, both setting the sys_guicmd call before the fork _and_
commenting out the call to setuid() fail to get rid of the messages:
14/02/2008 18:13:02 [0x0-0x185185].org.puredata.pd.wish Break
() to debug.
coming up in /var/log/syslog when starting pd
Below are the offending bits of s_inter.c as they stand right now; can
anyone see what's wrong with this picture?
sys_guicmd = cmdbuf;
fprintf(stderr, "%s", sys_guicmd);
childpid = fork();
if (childpid < 0)
if (errno) perror("sys_startgui");
else fprintf(stderr, "sys_startgui failed\n");
else if (!childpid) /* we're the child */
/*seteuid(getuid());*/ /* commented out to see
if that's what causes exec errors /* /* lose setuid priveliges */
/* the wish process in Unix will make a wish shell and
read/write standard in and out unless we close the
file descriptors. Somehow this doesn't make the
version of Wish happy...*/
if (pipe(stdinpipe) < 0)
if (stdinpipe != 0)
execl("/bin/sh", "sh", "-c", sys_guicmd, (char*)0);
More information about the Pd-dev