Fix stream life-time race condition by reversing ownership
This commit is contained in:
@@ -101,8 +101,8 @@ int stream_write(int pgid, int rid, void* buffer, size_t size) {
|
||||
return (int)do_syscall(SYS_STREAM_WRITE, pgid, rid, buffer, size);
|
||||
}
|
||||
|
||||
int stream_read(int pgid, int rid, void* buffer, size_t size) {
|
||||
return (int)do_syscall(SYS_STREAM_READ, pgid, rid, buffer, size);
|
||||
int stream_read(int rid, void* buffer, size_t size) {
|
||||
return (int)do_syscall(SYS_STREAM_READ, rid, buffer, size);
|
||||
}
|
||||
|
||||
int get_proc_info(struct proc_info* infos, size_t count) {
|
||||
@@ -122,3 +122,5 @@ int volume_delete(const char* key) { return (int)do_syscall(SYS_VOLUME_DELETE, k
|
||||
int date_time(struct date_time* dt) { return (int)do_syscall(SYS_DATE_TIME, dt); }
|
||||
|
||||
const char* get_cmdline(void) { return (const char*)do_syscall(SYS_GET_CMDLINE, 0); }
|
||||
|
||||
int proc_is_alive(int pid) { return (int)do_syscall(SYS_PROC_IS_ALIVE, pid); }
|
||||
|
||||
Reference in New Issue
Block a user