commit | 63411dbde5aa6faeee64cfab9af35c4a74b6dc4d | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Fri Dec 22 21:12:36 2000 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Dec 22 21:12:36 2000 +0000 |
tree | c14d679cb53307d8ff418ab0619f4fc0d0182d47 | |
parent | 2930b9c461e49d27318d72a5aa6452f9b1f2b59d [diff] [blame] |
Avoid dup'ing file descriptors when not necessary. Do not send fd to the client if ops->get_fd() fails.
diff --git a/server/serial.c b/server/serial.c index 7d30d4d..f32f8a3 100644 --- a/server/serial.c +++ b/server/serial.c
@@ -154,7 +154,7 @@ { struct serial *serial = (struct serial *)obj; assert( obj->ops == &serial_ops ); - return dup( serial->obj.fd ); + return serial->obj.fd; } static int serial_get_info( struct object *obj, struct get_file_info_request *req )