version 1.240, 2015/07/18 05:47:32 |
version 1.241, 2015/07/19 00:07:42 |
Line 419 main(int argc, char *argv[]) |
|
Line 419 main(int argc, char *argv[]) |
|
if (search.argmode == ARG_FILE && ! moptions(&options, auxpaths)) |
if (search.argmode == ARG_FILE && ! moptions(&options, auxpaths)) |
return((int)MANDOCLEVEL_BADARG); |
return((int)MANDOCLEVEL_BADARG); |
|
|
|
if (pager_pid == 1 && isatty(STDOUT_FILENO) == 0) |
|
pager_pid = 0; |
|
|
curp.mchars = mchars_alloc(); |
curp.mchars = mchars_alloc(); |
curp.mp = mparse_alloc(options, curp.wlevel, mmsg, |
curp.mp = mparse_alloc(options, curp.wlevel, mmsg, |
curp.mchars, defos); |
curp.mchars, defos); |
Line 430 main(int argc, char *argv[]) |
|
Line 433 main(int argc, char *argv[]) |
|
mparse_keep(curp.mp); |
mparse_keep(curp.mp); |
|
|
if (argc < 1) { |
if (argc < 1) { |
if (pager_pid == 1 && isatty(STDOUT_FILENO)) |
if (pager_pid == 1) |
pager_pid = spawn_pager(); |
pager_pid = spawn_pager(); |
parse(&curp, STDIN_FILENO, "<stdin>"); |
parse(&curp, STDIN_FILENO, "<stdin>"); |
} |
} |
Line 442 main(int argc, char *argv[]) |
|
Line 445 main(int argc, char *argv[]) |
|
rc = rctmp; |
rc = rctmp; |
|
|
if (fd != -1) { |
if (fd != -1) { |
if (pager_pid == 1 && isatty(STDOUT_FILENO)) |
if (pager_pid == 1) |
pager_pid = spawn_pager(); |
pager_pid = spawn_pager(); |
|
|
if (resp == NULL) |
if (resp == NULL) |