Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
433553bd
Commit
433553bd
authored
Nov 23, 2002
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to 2.5.49, which involved fixing the calls to do_fork.
parent
f698b940
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
arch/um/kernel/process_kern.c
arch/um/kernel/process_kern.c
+1
-1
arch/um/kernel/syscall_kern.c
arch/um/kernel/syscall_kern.c
+3
-3
No files found.
arch/um/kernel/process_kern.c
View file @
433553bd
...
@@ -190,7 +190,7 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
...
@@ -190,7 +190,7 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
current
->
thread
.
request
.
u
.
thread
.
proc
=
fn
;
current
->
thread
.
request
.
u
.
thread
.
proc
=
fn
;
current
->
thread
.
request
.
u
.
thread
.
arg
=
arg
;
current
->
thread
.
request
.
u
.
thread
.
arg
=
arg
;
p
=
do_fork
(
CLONE_VM
|
flags
,
0
,
NULL
,
0
,
NULL
);
p
=
do_fork
(
CLONE_VM
|
flags
,
0
,
NULL
,
0
,
NULL
,
NULL
);
if
(
IS_ERR
(
p
))
panic
(
"do_fork failed in kernel_thread"
);
if
(
IS_ERR
(
p
))
panic
(
"do_fork failed in kernel_thread"
);
return
(
p
->
pid
);
return
(
p
->
pid
);
}
}
...
...
arch/um/kernel/syscall_kern.c
View file @
433553bd
...
@@ -33,7 +33,7 @@ long sys_fork(void)
...
@@ -33,7 +33,7 @@ long sys_fork(void)
struct
task_struct
*
p
;
struct
task_struct
*
p
;
current
->
thread
.
forking
=
1
;
current
->
thread
.
forking
=
1
;
p
=
do_fork
(
SIGCHLD
,
0
,
NULL
,
0
,
NULL
);
p
=
do_fork
(
SIGCHLD
,
0
,
NULL
,
0
,
NULL
,
NULL
);
current
->
thread
.
forking
=
0
;
current
->
thread
.
forking
=
0
;
return
(
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
);
return
(
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
);
}
}
...
@@ -43,7 +43,7 @@ long sys_clone(unsigned long clone_flags, unsigned long newsp)
...
@@ -43,7 +43,7 @@ long sys_clone(unsigned long clone_flags, unsigned long newsp)
struct
task_struct
*
p
;
struct
task_struct
*
p
;
current
->
thread
.
forking
=
1
;
current
->
thread
.
forking
=
1
;
p
=
do_fork
(
clone_flags
,
newsp
,
NULL
,
0
,
NULL
);
p
=
do_fork
(
clone_flags
,
newsp
,
NULL
,
0
,
NULL
,
NULL
);
current
->
thread
.
forking
=
0
;
current
->
thread
.
forking
=
0
;
return
(
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
);
return
(
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
);
}
}
...
@@ -53,7 +53,7 @@ long sys_vfork(void)
...
@@ -53,7 +53,7 @@ long sys_vfork(void)
struct
task_struct
*
p
;
struct
task_struct
*
p
;
current
->
thread
.
forking
=
1
;
current
->
thread
.
forking
=
1
;
p
=
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
0
,
NULL
,
0
,
NULL
);
p
=
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
0
,
NULL
,
0
,
NULL
,
NULL
);
current
->
thread
.
forking
=
0
;
current
->
thread
.
forking
=
0
;
return
(
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
);
return
(
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment