git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Improve QNX support in GIT

From
MKMatt Kraai <kraai@ftbfs.org>
Date
Feb 26, 2013, 20:13 UTC
Message-ID
<20130226201305.GA3502@ftbfs.org>
Hi,

Please include me in the Cc field, since I'm not subscribed to the list.

Mike Gorchak wrote:
> Do you have a testcase for this (without using git codebase)? I wrote
> numerous resource managers since QNX 6.0 using threads and fork()s for
> daemonization in different order and never experienced a problems.
> There can be issues with pipes in case of external command run.
I just created the following one:

#include <pthread.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <process.h>

static void *
start_routine (void *arg)
{
  return NULL;
}
int
main (int argc, char **argv)
{
  int err;
  if ((err = pthread_create (NULL, NULL, start_routine, NULL)))
    {
      fprintf (stderr, "foo: pthread_create failed: %s\n", strerror (errno));
      return 1;
    }
  if (fork () == -1)
    {
      fprintf (stderr, "foo: fork failed: %s\n", strerror (errno));
      return 1;
    }
  return 0;
}

When I compile and run it on either QNX 6.3.2 or QNX 6.5.0, it produces the following output:

 foo: fork failed: Function not implemented

If I remove the call to pthread_create, it doesn't output anything and exits successfully.

Next: Mike Gorchak
Message 1 of 4 in “Re: [PATCH] Improve QNX support in GIT”
  1. Matt KraaiFeb 26, 2013
  2. Mike GorchakFeb 26, 2013
  3. Johannes SixtFeb 26, 2013
  4. Matt KraaiFeb 26, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.