Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/loc.c

    r0239846 r8b8c164  
    247247        sysarg_t retval = async_data_write_start(exch, name, str_size(name));
    248248       
     249        loc_exchange_end(exch);
     250       
    249251        if (retval != EOK) {
    250252                async_forget(req);
    251                 loc_exchange_end(exch);
    252                 return retval;
    253         }
    254        
     253                return retval;
     254        }
     255       
     256        exch = loc_exchange_begin(INTERFACE_LOC_SUPPLIER);
    255257        async_connect_to_me(exch, 0, 0, 0);
    256 
    257         /*
    258          * First wait for the answer and then end the exchange. The opposite
    259          * order is generally wrong because it may lead to a deadlock under
    260          * certain circumstances.
    261          */
     258        loc_exchange_end(exch);
     259       
    262260        async_wait_for(req, &retval);
    263         loc_exchange_end(exch);
    264        
    265261        return retval;
    266262}
     
    280276        sysarg_t retval = async_data_write_start(exch, fqsn, str_size(fqsn));
    281277       
     278       
    282279        if (retval != EOK) {
    283280                async_forget(req);
     
    286283        }
    287284       
    288         /*
    289          * First wait for the answer and then end the exchange. The opposite
    290          * order is generally wrong because it may lead to a deadlock under
    291          * certain circumstances.
    292          */
    293285        async_wait_for(req, &retval);
    294286        loc_exchange_end(exch);
Note: See TracChangeset for help on using the changeset viewer.