… | |
… | |
85 | _syscall3(int,read,int,fd,char *,buf,off_t,count); |
85 | _syscall3(int,read,int,fd,char *,buf,off_t,count); |
86 | _syscall3(int,write,int,fd,char *,buf,off_t,count); |
86 | _syscall3(int,write,int,fd,char *,buf,off_t,count); |
87 | |
87 | |
88 | /* first get rid of any signals */ |
88 | /* first get rid of any signals */ |
89 | for (sig = 1; sig < _NSIG; sig++) |
89 | for (sig = 1; sig < _NSIG; sig++) |
90 | if (sig != SIGTERM) |
|
|
91 | signal (sig, SIG_IGN); |
90 | signal (sig, SIG_IGN); |
|
|
91 | |
|
|
92 | signal (SIGTERM, SIG_DFL); |
92 | |
93 | |
93 | /* then loop */ |
94 | /* then loop */ |
94 | while (read (reqpipe[0], (void *)&req, sizeof (req)) == sizeof (req)) |
95 | while (read (reqpipe[0], (void *)&req, sizeof (req)) == sizeof (req)) |
95 | { |
96 | { |
96 | req->thread = thr; |
97 | req->thread = thr; |
… | |
… | |
143 | while (started > nthreads) |
144 | while (started > nthreads) |
144 | end_thread (); |
145 | end_thread (); |
145 | |
146 | |
146 | void |
147 | void |
147 | read(fh,offset,length,data,dataoffset,callback) |
148 | read(fh,offset,length,data,dataoffset,callback) |
|
|
149 | ALIAS: |
|
|
150 | write = 1 |
148 | CODE: |
151 | CODE: |