Changeset cd37cdc for libwandio/ior-thread.c
- Timestamp:
- 04/01/15 11:37:41 (6 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 03f8943
- Parents:
- 3e5518a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libwandio/ior-thread.c
r10f924c rcd37cdc 44 44 #include <stdbool.h> 45 45 #include <errno.h> 46 #include <signal.h> 46 47 #ifdef HAVE_SYS_PRCTL_H 47 48 #include <sys/prctl.h> … … 167 168 { 168 169 io_t *state; 170 sigset_t set; 171 int s; 169 172 170 173 if (!parent) { … … 172 175 } 173 176 174 177 sigfillset(&set); 175 178 state = malloc(sizeof(io_t)); 176 179 state->data = calloc(1,sizeof(struct state_t)); … … 189 192 190 193 /* Create the reading thread */ 194 s = pthread_sigmask(SIG_SETMASK, &set, NULL); 191 195 pthread_create(&DATA(state)->producer,NULL,thread_producer,state); 196 sigemptyset(&set); 197 s = pthread_sigmask(SIG_SETMASK, &set, NULL); 192 198 193 199 return state;
Note: See TracChangeset
for help on using the changeset viewer.