我在查看一个进程是否存在时,采用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
[code] public interface Service { public void serve(InputStream in, OutputStream out) throws IOException; } public static class Timer implements Service { public void serve(InputStream i, OutputStream o) throws IOException { PrintWriter out = new PrintWriter(o); out.print(new Date() + "\n"); out.close(); i.close(); } } [/code] error:illegal modifier for the class Timer; only public, abstract & fi...
在子线程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新线程时产生的
安装完freebsd6.2后添加了一个用户 ,但是远程登陆不了, 认证失败。 sshd[851]:error :PAM: authentication error for illegal usrer
sun280 装有两块71g硬盘,在装系统的时候只能认出一块硬盘。
进系统format
earching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
如题,那位能帮忙解释一下谢谢..U60启动的时候出现,在 OK 下偶尔能用 BOOT CDROM -S 启动起来,但进去后无法看到 SCSI 硬盘,在用CDROM启动过程中出现 WARING:/PCI@IF,4000/SCSI@3/SD@6,0 SCSI TRANSPORT FAILED: REASON 'UNEXPECTED_BUS_FREE':GIVING UP.
诸位有没有在hpux下使用过STL的东东?
我在 #include