os: Clear the -displayfd option after closing the file
authorKeith Packard <keithp@keithp.com>
Fri, 18 Apr 2014 22:00:35 +0000 (15:00 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 18 Apr 2014 23:30:17 +0000 (16:30 -0700)
commit4957e986841225e9984daca76f1a0ee08df125bb
treec2ca498f673ea4a5c1505247ce823ac5dde06086
parent0c0feddbcda238efa82a47f456ef3008ffa53195
os: Clear the -displayfd option after closing the file

Failing to clear this means that we'll attempt to write the display
number to a random file descriptor on subsequent X server generations.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
os/connection.c