Code review comment for lp:~manjo/checkbox/stress-test

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

168 + pthread_attr_t attr;

217 +
218 + if (pthread_attr_init(&attr)) {
219 + fprintf(stderr, "ERROR: pthread_attr_init() failed\n");
220 + exit(2);
221 + }
222 +
223 + if (pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE)) {
224 + fprintf(stderr, "ERROR: pthread_attr_setdetachstate() failed\n");
225 + exit(3);
226 + }
227 +

263 +
264 + pthread_attr_destroy(&attr);
265 +

Since you don't really need those attributes this code can be removed

« Back to merge proposal