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

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;

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.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to