~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/runtime/cgo/darwin_amd64.c

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        pthread_attr_t attr;
84
84
        pthread_t p;
85
85
        size_t size;
 
86
        int err;
86
87
 
87
88
        pthread_attr_init(&attr);
88
89
        pthread_attr_getstacksize(&attr, &size);
89
90
        ts->g->stackguard = size;
90
 
        pthread_create(&p, &attr, threadentry, ts);
 
91
        err = pthread_create(&p, &attr, threadentry, ts);
 
92
        if (err != 0) {
 
93
                fprintf(stderr, "runtime/cgo: pthread_create failed: %s\n", strerror(err));
 
94
                abort();
 
95
        }
91
96
}
92
97
 
93
98
static void*