Added -f option to make wineserver remain in the foreground for
debugging.
Close stdin/stdout when not in the foreground (based on a patch by
Francois Gouget).

diff --git a/server/object.h b/server/object.h
index c72b873..256c99e 100644
--- a/server/object.h
+++ b/server/object.h
@@ -156,6 +156,7 @@
   /* command-line options */
 extern int debug_level;
 extern int master_socket_timeout;
+extern int foreground;
 extern const char *server_argv0;
 
   /* server start time used for GetTickCount() */