Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Fix errore memcpy #15
Browse files Browse the repository at this point in the history
  • Loading branch information
jjak0b committed May 7, 2020
1 parent 0f46cc7 commit a04c667
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handler/shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int Sys2_CreateProcess( state_t *child_state, int child_priority, pcb_t **child_
*child_pid = allocPcb(); /* il puntatore sarà nullo in caso non vi siano PCB disponibili */

if ( *child_pid ) {
(*child_pid)->p_s = *child_state;
moveState( child_state, &(*child_pid)->p_s );
(*child_pid)->priority = child_priority;
(*child_pid)->original_priority = child_priority;
insertChild( scheduler_GetRunningProcess(), *child_pid );
Expand Down Expand Up @@ -142,6 +142,7 @@ int Sys3_TerminateProcess( pcb_t *pid ) {
struct list_head *child_iter;
pcb_t *dummy;


list_for_each( child_iter, &pid->p_child ) {
dummy = container_of( child_iter, pcb_t, p_sib );
int *key = dummy->p_semkey;
Expand Down

0 comments on commit a04c667

Please sign in to comment.