Changes in uspace/app/tester/devs/devman2.c [5d1b3aa:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/devs/devman2.c
r5d1b3aa r79ae36dd 42 42 #include <devman.h> 43 43 #include <str.h> 44 #include <async.h> 44 45 #include <vfs/vfs.h> 46 #include <vfs/vfs_sess.h> 45 47 #include <sys/stat.h> 46 48 #include <fcntl.h> … … 68 70 continue; 69 71 } 70 int phone = fd_phone(fd);72 async_sess_t *sess = fd_session(EXCHANGE_SERIALIZE, fd); 71 73 close(fd); 72 if ( phone < 0) {73 TPRINTF("Failed opening phone: %s.\n", str_error( phone));74 rc = phone;74 if (sess == NULL) { 75 TPRINTF("Failed opening phone: %s.\n", str_error(errno)); 76 rc = errno; 75 77 err_msg = "Failed opening file descriptor phone"; 76 78 continue; 77 79 } 78 async_hangup( phone);80 async_hangup(sess); 79 81 TPRINTF("Path `%s' okay.\n", path); 80 82 free(path); … … 83 85 } 84 86 85 if (path != NULL) {87 if (path != NULL) 86 88 free(path); 87 } 88 89 89 90 return err_msg; 90 91 }
Note:
See TracChangeset
for help on using the changeset viewer.