server: Don't enable polling on regular files in add_queue.

This commit is contained in:
Alexandre Julliard 2005-12-12 17:20:03 +01:00
parent 59797f292e
commit 770c4a1551
1 changed files with 2 additions and 2 deletions

View File

@ -1479,7 +1479,7 @@ int default_fd_add_queue( struct object *obj, struct wait_queue_entry *entry )
struct fd *fd = get_obj_fd( obj );
if (!fd) return 0;
if (list_empty( &obj->wait_queue )) /* first on the queue */
if (!fd->inode && list_empty( &obj->wait_queue )) /* first on the queue */
set_fd_events( fd, fd->fd_ops->get_poll_events( fd ) );
add_queue( obj, entry );
release_object( fd );
@ -1493,7 +1493,7 @@ void default_fd_remove_queue( struct object *obj, struct wait_queue_entry *entry
grab_object( obj );
remove_queue( obj, entry );
if (list_empty( &obj->wait_queue )) /* last on the queue is gone */
if (!fd->inode && list_empty( &obj->wait_queue )) /* last on the queue is gone */
set_fd_events( fd, 0 );
release_object( obj );
release_object( fd );