Sign in
fuchsia
/
third_party
/
binutils-gdb
/
5565b5569bf75adccb29b590f5433aeb9dda3314
/
.
/
gdb
/
testsuite
/
gdb.hp
/
gdb.threads-hp
/
usrthfork.c
blob: 9ddb8f3faf2b7ae5b5ba4339ee5bfb48e3e89f35 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<pthread.h>
#include
<sys/types.h>
int
main
(
void
){
pid_t
pid
;
switch
(
pid
=
fork
()){
case
0
:
printf
(
"child\n"
);
break
;
default
:
printf
(
"parent\n"
);
break
;
}
return
0
;
}