我在查看一个进程是否存在时,采用popen函数来做,但有时出现errno为29的错误(illegal seek),请问该错误是什么意思。 其实现代码如下: 由于popen在多线程中是不安全的,而我运行的环境是多线程的, // popen multi-thread is not safe pthread_mutex_lock(&PopenMutex); if ((fp = popen("ps -ef | grep nodemgr | grep -v grep", "r")) == NULL) { errormsg(1, "popen fail, query nodemgr %d fail, error: %d\n", n...
by ublue - C/C++ - 2005-03-19 17:18:03 阅读(1287) 回复(0)
我在调用readdir读取当前目录下的目录项时,发生illegal seek错误。
我在网上找了老半天没找到原因。
大家帮我看看啥原因。
谢谢!
[quote]
#include
在子线程send ,第一次时候返回success,后面send 返回值>;0,但是perror出来是 illegal seek,偶尔会有Interrupted system call,但是不管返回什么client都接收不到(郁闷)。程序执行到send,后面cout就出不来了。 请高手帮忙。 代码如下: [code] if ( !m_ControlMsgMap.empty() ) { cout<< "get message to send" << endl; cout << " map size " << m_Control...
login as: admin [email=admin@192.168.1.252]admin@192.168.1.252's[/email] password: Last login: Mon Sep 24 16:50:35 2007 from 192.168.1.167 [admin@linux ~]$ [admin@linux ~]$ ftp 192.168.1.167 Connected to 192.168.1.167. 220 Serv-U FTP Server v6.4 for WinSock ready... //这里要等NNN久,不知道为啥 421 Maximum session time exceeded - closing. No control connection for command: illegal seek KERBEROS_...
Escape character is '^]'. getnameinfo: localhost: Success Temporary failure in name resolution: illegal seek Connection closed by foreign host. 如何能解决?
多线程程序总是报“illegal seek”,一般是什么原因了? 多个线程共用一个条件变量会不会出现这种情况? 另外,估计是在程序中动态pthread_create新线程时产生的
本人小本,毕业于国内一重点高校计算机科学与技术专业本科 现在在北京一个科研机构实验室做安全相关的课题以及咨询方案类工作 因为gf在上海,准备去sh发展. 简要介绍:安全行业的相关背景和经历,对电信移动增值行业也较为熟悉 寻求技术支持经理,方案经理,或者RD相关职位. msn: tim0n4@msn.com mail:chejj@nipc.org.cn 我会寄出详细简历
运行程序的时候出现了以下错误。 ArcInfo input file "Linkmap" error warning: illegal Index in LinkNeighbors: (0,13):0(0) warning: illegal Index in LinkNeighbors: (0,14):0(0) warning: illegal Index in LinkNeighbors: (1,13):0(0) warning: illegal Index in LinkNeighbors: (1,14):0(0) 下面的代码包含了对错误信息的提示,if( !GMR(rr,rc,il) ) { sprintf(gMsgStr,"illegal Index in LinkNeighbors: (%d,%...
Last_Error: Error 'illegal mix of collations (binary,IMPLICIT) and (binary,NONE) for operation '>='' on query. Default database: 'c2cboss'. Query: 'insert into BossLawSuitContent2 (RequestID,SpeakUin, SpeakContent, SpeakTime,AddPath,SpeakNick, SpeakTitle,SpeakType) select RequestID,0, @lawsuit_sys_speak, sysdate(),'','system', '',1 from BossLawSuit2 where RequestTime >= @lawsuit_begin_time and R...