$filename = "/tmp/test_php.pid";$fp = fopen($filename, 'w');//unset($fp);unlink($filename);sleep(6);复制代码2,C程序代码 #include int main() { char *filename = "/tmp/test_c.pid"; FILE *fp; fp = fopen(filename, "w"); unlink(filename); sleep(6); } 复制代码