]> git.tuebingen.mpg.de Git - paraslash.git/commit
stdin/stdout: Restore fd flags on shutdown.
authorAndre Noll <maan@systemlinux.org>
Mon, 18 Mar 2013 22:51:46 +0000 (23:51 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 May 2013 22:48:04 +0000 (00:48 +0200)
commitb99b4ac94a4391f5a6bbeb9b8ba5eb466eca6249
tree05dc737a8edaa5bf3448987e45aa95e84f5b1bb2
parent29921a5e29530801697ce4e4773738404efcbf57
stdin/stdout: Restore fd flags on shutdown.

The stdin/stdout code should restore the flags to the old value to
avoid surprises, for example in shell scripts.

This changes stdin.c and stdout.c to save the old value. It is
restored in ->post_select when the buffer tree node is removed and
no more I/O takes place.
stdin.c
stdin.h
stdout.c
stdout.h