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
168 + pthread_attr_t attr;
217 + attr_init( &attr)) { attr_setdetachs tate(&attr, PTHREAD_ CREATE_ JOINABLE) ) { attr_setdetachs tate() failed\n");
218 + if (pthread_
219 + fprintf(stderr, "ERROR: pthread_attr_init() failed\n");
220 + exit(2);
221 + }
222 +
223 + if (pthread_
224 + fprintf(stderr, "ERROR: pthread_
225 + exit(3);
226 + }
227 +
263 + attr_destroy( &attr);
264 + pthread_
265 +
Since you don't really need those attributes this code can be removed