ChinaUnix.net
相关文章推荐:

pthreadself getpid

getpid()的返回值是pid_t类型的,那么prinf("%d",getpid*());为什么可以使用%d对它进行格式化输出? 还有就是系统以_t结尾的原始数据类型,如何和现有的数据类型对应?

by gridpc - 程序开发 - 2005-12-15 16:20:20 阅读(1256) 回复(6)

相关讨论

日志中出现的: getpid: peer died: Error 0 是啥意思哦,望各位大侠指教?

by zsxx2004 - 服务器应用 - 2004-03-02 15:39:18 阅读(1522) 回复(0)

在线程的执行函数中调用getpid得到的什么值啊?应该不是所在进程的进程号吧,主线程中和create的线程中得到的不一致啊。如: [code]#include #include #include #include void * thread(void * a); int main(int argc,char *argv[]) { pid_t ident; ident=getpid(); printf("ident:%d\n",ident); pthread_t id; pthread_create(&id,NULL,thread,NULL); } void * thread(v...

by datou123654789 - 程序开发 - 2005-11-28 16:52:42 阅读(4404) 回复(14)

kill(getpid(),sigtstp)中的sigtstp是什么意思?

by dontknowall - C/C++ - 2003-05-07 17:08:53 阅读(4777) 回复(2)

# include "fcntl.h" fcntl(conn_fd,F_SETOWN,getpid()) 编译的时候说不认识F_SETOWN, 还需要什么头文件吗? 编译环境为5。0。5

by plain - 其他UNIX - 2003-09-18 11:27:18 阅读(2200) 回复(1)