FreeBSD Bugzilla – Attachment 183874 Details for
Bug 220324
Process run under truss(1) doesn't launch child processes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase: pdfork.c
pdfork.c (text/x-csrc), 452 bytes, created by
Yuri Victorovich
on 2017-06-28 07:03:31 UTC
(
hide
)
Description:
Testcase: pdfork.c
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2017-06-28 07:03:31 UTC
Size:
452 bytes
patch
obsolete
> > >#include <sys/procdesc.h> >#include <stdio.h> >#include <stdlib.h> >#include <unistd.h> > >main() { > pid_t pid; > pid_t fdp; > char *const argv[] = {".", 0}; > int res; > if ((pid = pdfork(&fdp, 1)) != 0) { > printf("I am the main process. Child is %d fdp=%d\n", pid, fdp); > exit(0); > } else { > printf("I am a child process. My pid=%d fdp=%d\n", getpid(), fdp); > res = execv("/bin/ls", argv); > printf("child: execv->res=%d\n", res); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 220324
: 183874 |
183875