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