相关讨论
日志中出现的:
getpid: peer died: Error 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...
kill(getpid(),sigtstp)中的sigtstp是什么意思?
# include "fcntl.h"
fcntl(conn_fd,F_SETOWN,getpid())
编译的时候说不认识F_SETOWN,
还需要什么头文件吗?
编译环境为5。0。5