Skip to content

Commit

Permalink
ipc: initialize job structure before dispatching it
Browse files Browse the repository at this point in the history
(cherry picked from commit 243e0e3)
  • Loading branch information
razvancrainea committed Aug 9, 2023
1 parent 22a9401 commit 0e04fc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ static inline int __ipc_send_job(int fd, int dst_proc, ipc_handler_type type,

// FIXME - we should check if the destination process really listens
// for read, otherwise we may end up filling in the pipe and block
memset(&job, 0, sizeof job);

job.snd_proc = (short)process_no;
job.handler_type = type;
Expand Down

0 comments on commit 0e04fc2

Please sign in to comment.