当前位置: 技术问答>linux和unix
高手指点:Linux的exit调用的_IO_cleanup()为什么没起作用呢?
来源: 互联网 发布时间:2016-02-08
本文导语: #include "apue.h" int glob = 6; /* external variable in initialized data */ int main(void) { int var; /* automatic variable on the stack */ pid_t pid; var = 88; print...
#include "apue.h"
int glob = 6; /* external variable in initialized data */
int
main(void)
{
int var; /* automatic variable on the stack */
pid_t pid;
var = 88;
printf("before vforkn"); /* we don 't flush stdio */
if ((pid = vfork())
int glob = 6; /* external variable in initialized data */
int
main(void)
{
int var; /* automatic variable on the stack */
pid_t pid;
var = 88;
printf("before vforkn"); /* we don 't flush stdio */
if ((pid = vfork())