projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
import gdb-1999-08-16 snapshot
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.hp
/
gdb.threads-hp
/
usrthfork.c
1
#include <stdio.h>
2
#include <pthread.h>
3
#include <sys/types.h>
4
5
int
main
(
void
){
6
pid_t pid
;
7
8
switch
(
pid
=
fork
()){
9
case
0
:
10
printf
(
"child
\n
"
);
11
break
;
12
default
:
13
printf
(
"parent
\n
"
);
14
break
;
15
}
16
return
0
;
17
}
This page took
0.035828 seconds
and
4
git commands to generate.