summaryrefslogtreecommitdiffstats
path: root/listen/utils.c
diff options
context:
space:
mode:
authorThomas Osterried <thomas@osterried.de>2008-04-13 23:03:52 +0000
committerThomas Osterried <thomas@osterried.de>2008-04-13 23:03:52 +0000
commit0cbbc646f7a69b7efd4f74209ccc31d04b18d118 (patch)
tree491f598be7e6c8b9a7baf9421857421f74b9dff4 /listen/utils.c
parentbb18a39b4a7f79f7bfe4861fdb8860e3eef58246 (diff)
the following issues are fixed:
1. if stdin closes (i.e. if call is right end of a pipe), then call should close. this also fixes the case when call reads from a unix fifo, and the other end of the fifo terminates. This produced highest cpu-load, with select(), read() = 0, select(), read() = 0, .. 2. if stdin is not a tty, i.e. call is called from ax25d, then it's not a good idea to honor the ~ commands. In that special case, you could imagine what ~! means, while ax25d is running as uid 0... 3. while not operating on pty, the FILE buffers are not flushed in all cases. Thus, the messages like "Connected .." were be printed in the termination phase of the program..
Diffstat (limited to 'listen/utils.c')
0 files changed, 0 insertions, 0 deletions