diff options
| author | Ingo Molnar <mingo@elte.hu> | 2003-05-18 21:45:28 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-18 21:45:28 -0700 |
| commit | 7196d9dfecaff4a8027fa706c6785bed06fb30cd (patch) | |
| tree | ff80e409f82fb1b4c6521832138016b6df0025d2 /include/linux/node.h | |
| parent | c6b523ab3aed9b6a183e7a9982f11eda9567af96 (diff) | |
[PATCH] fix do_fork() return value
Noticed by Julie DeWandel <jdewand@redhat.com>.
do_fork() needs to return the pid (or error), not the pointer to the
resulting process structure. The process structure may not even be
valid any more, since do_fork() has already woken the process up (and as
a result it might already have done its thing and gone away).
Besides, doing it this way cleans up the users, which all really just
wanted the pid or error number _anyway_.
This fixes the x86 users, other architectures need to be fixed up as
well.
Diffstat (limited to 'include/linux/node.h')
0 files changed, 0 insertions, 0 deletions
