Rev 2388 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2388 | Rev 2401 | ||
---|---|---|---|
Line 97... | Line 97... | ||
97 | if (fs_call == IPC_M_AS_AREA_SEND) { |
97 | if (fs_call == IPC_M_AS_AREA_SEND) { |
98 | if (!new_consument) |
98 | if (!new_consument) |
99 | ipc_answer_fast(callid, FS_ECONNECT, 0, 0); |
99 | ipc_answer_fast(callid, FS_ECONNECT, 0, 0); |
100 | else { |
100 | else { |
101 | ipc_answer_fast(callid, 0, (uintptr_t)fp->buffer, 0); |
101 | ipc_answer_fast(callid, 0, (uintptr_t)fp->buffer, 0); |
102 | fp = &fproc[new_consument]; |
102 | fp = &fproc[new_consument]; |
103 | fp->connected = TRUE; |
103 | fp->connected = TRUE; |
104 | new_consument = FALSE; |
104 | new_consument = FALSE; |
105 | } |
105 | } |
106 | continue; |
106 | continue; |
107 | } |
107 | } |
- | 108 | ||
- | 109 | if (fs_call == FS_DROP_CONSUMER) { |
|
- | 110 | fproc->connected = FALSE; |
|
- | 111 | fproc->buffer = NULL; |
|
- | 112 | ipc_answer_fast(callid, 0, 0, 0); |
|
- | 113 | ||
- | 114 | continue; |
|
- | 115 | } |
|
108 | 116 | ||
109 | if (check_con < 0) { |
117 | if (check_con < 0) { |
110 | ipc_answer_fast(callid, err_code, 0, 0); |
118 | ipc_answer_fast(callid, err_code, 0, 0); |
111 | check_con = TRUE; |
119 | check_con = TRUE; |
112 | continue; |
120 | continue; |