252 |
|
|
253 |
if (pipe(p_err) < 0 || pipe(p_inout) < 0) |
if (pipe(p_err) < 0 || pipe(p_inout) < 0) |
254 |
{ |
{ |
255 |
fl_snprintf(buf,sizeof(buf), |
fl_snprintf(buf,sizeof(buf), |
256 |
"Can't create pipe - %s", fl_get_syserror_msg()); |
"Can't create pipe - %s", fl_get_syserror_msg()); |
257 |
fprintf(stderr, "%s\n", buf); |
fprintf(stderr, "%s\n", buf); |
258 |
fl_addto_browser(logger->browser, buf); |
fl_addto_browser(logger->browser, buf); |
303 |
(void *) ( long ) cur->pid); |
(void *) ( long ) cur->pid); |
304 |
fl_add_io_callback(cur->fd_out, |
fl_add_io_callback(cur->fd_out, |
305 |
FL_READ, |
FL_READ, |
306 |
io_cb, |
io_cb, |
307 |
(void *) ( long ) cur->pid); |
(void *) ( long ) cur->pid); |
308 |
} |
} |
309 |
|
|
333 |
sa.lpSecurityDescriptor = NULL; |
sa.lpSecurityDescriptor = NULL; |
334 |
if (!CreatePipe(&hPipeRead, &hPipeWrite, &sa, 255)) |
if (!CreatePipe(&hPipeRead, &hPipeWrite, &sa, 255)) |
335 |
{ |
{ |
336 |
fl_snprintf(buf, sizeof(buf), "Can't create pipe - %s", |
fl_snprintf(buf, sizeof(buf), "Can't create pipe - %s", |
337 |
fl_get_syserror_msg()); |
fl_get_syserror_msg()); |
338 |
fprintf(stderr, "%s\n", buf); |
fprintf(stderr, "%s\n", buf); |
339 |
fl_addto_browser(logger->browser, buf); |
fl_addto_browser(logger->browser, buf); |
498 |
fclose(stream); |
fclose(stream); |
499 |
|
|
500 |
for (last = 0, cur = pidlist; cur && cur->fd_user != fd; |
for (last = 0, cur = pidlist; cur && cur->fd_user != fd; |
501 |
last = cur, cur = last->next) |
last = cur, cur = last->next) |
502 |
; |
; |
503 |
|
|
504 |
if (!cur) |
if (!cur) |