Changeset 9c4cf0d in mainline for uspace/app/websrv/websrv.c


Ignore:
Timestamp:
2017-04-02T11:24:06Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
151f1cc
Parents:
b19e892
Message:

Rename close() to vfs_put()

This is motivated mainly by the fact that a file handle does not
necessarily correspond to an open file and close() was no longer the
the opposite operation to open().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/websrv/websrv.c

    rb19e892 r9c4cf0d  
    245245               
    246246                if (nr < 0) {
    247                         close(fd);
     247                        vfs_put(fd);
    248248                        return EIO;
    249249                }
     
    252252                if (rc != EOK) {
    253253                        fprintf(stderr, "tcp_conn_send() failed\n");
    254                         close(fd);
     254                        vfs_put(fd);
    255255                        return rc;
    256256                }
    257257        }
    258258       
    259         close(fd);
     259        vfs_put(fd);
    260260       
    261261        return EOK;
Note: See TracChangeset for help on using the changeset viewer.