Changeset a32c9bb in mainline for uspace/srv/fs/tmpfs/tmpfs.c


Ignore:
Timestamp:
2009-03-02T17:33:47Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1fcfc94
Parents:
13ec8055
Message:

blocking connection to VFS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs.c

    r13ec8055 ra32c9bb  
    127127int main(int argc, char **argv)
    128128{
    129         int vfs_phone;
    130 
    131129        printf(NAME ": HelenOS TMPFS file system server\n");
    132 
    133         vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0, 0);
    134         while (vfs_phone < EOK) {
    135                 usleep(10000);
    136                 vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0, 0);
     130       
     131        int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0);
     132        if (vfs_phone < EOK) {
     133                printf(NAME ": Unable to connect to VFS\n");
     134                return -1;
    137135        }
    138136       
    139         int rc;
    140         rc = fs_register(vfs_phone, &tmpfs_reg, &tmpfs_vfs_info,
     137        int rc = fs_register(vfs_phone, &tmpfs_reg, &tmpfs_vfs_info,
    141138            tmpfs_connection);
    142139        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.