mirror of
https://github.com/drasko/codezero.git
synced 2026-04-17 17:29:04 +02:00
Added child utcb initialisation to fork call implementation in libposix.
This commit is contained in:
@@ -39,8 +39,11 @@ int fork(void)
|
||||
errno = -ret;
|
||||
return -1;
|
||||
}
|
||||
/* else return value */
|
||||
return ret;
|
||||
|
||||
/* If we're a child, we need to initialise the utcb page */
|
||||
if (ret == 0)
|
||||
utcb_init();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user