-
Niels Möller authored
whether or not to use the liboop signal adapter. (io_init) [WITH_LIBOOP_SIGNAL_ADAPTER]: Create signal adapter. (io_final) [WITH_LIBOOP_SIGNAL_ADAPTER]: Destroy signal adapter. (make_lsh_fd): Files of both types IO_STDIO and IO_STDERR are shared. Bugfix: Don't reset type to zero. (write_only_file): New class. (do_write_only_file, make_io_write_file): New function. (io_write_file): Don't create a lsh_fd. Instead, use the simpler write_only_file, and return a struct abstract_write *. These files are never closed. (close_fd): Don't close files of type IO_STDERR. For files of type IO_STDIO, close them, and map the fd to /dev/null. * src/io.h (io_type): New enum constant IO_STDERR. Rev: src/io.c:1.214 Rev: src/io.h:1.110
0b94ded0