Closed fangpsh closed 10 years ago
NameError: global name 'F_GETFD' is not defined 05-18 02:04:30.106 [INFO ][slatefish :44 ] Hi, this is message from SlateFish: 1400349870.106033 05-18 02:04:30.107 [INFO ][systemtask :64 ] Task: logcleaner added 05-18 02:04:30.107 [INFO ][systemtask :68 ] Task: taskcleaner added 05-18 02:05:40.064 [INFO ][mirror.main :202 ] Starting mirror daemon... 05-18 02:05:40.076 [INFO ][slatefish :35 ] I am a slate fish living in the upstream river of Qiandao Lake. 05-18 02:05:40.076 [INFO ][pluginmanager :93 ] Plugin SlateFish enabled... 05-18 02:05:40.078 [INFO ][pluginmanager :93 ] Plugin SystemTask enabled... 05-18 02:05:40.082 [INFO ][pluginmanager :93 ] Plugin TaskStatus enabled... 05-18 02:05:40.084 [INFO ][mirror.daemon :40 ] Starting mirror scheduler... 05-18 02:05:40.085 [ERROR ][mirror.main :206 ] global name 'F_GETFD' is not defined Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/mirror/main.py", line 204, in start_daemon daemon = MirrorDaemon(options, args) File "build/bdist.linux-x86_64/egg/mirror/daemon.py", line 41, in __init__ self.scheduler.start() File "build/bdist.linux-x86_64/egg/mirror/scheduler.py", line 76, in start self.sleep() File "build/bdist.linux-x86_64/egg/mirror/scheduler.py", line 88, in sleep self.write_mmap() File "build/bdist.linux-x86_64/egg/mirror/scheduler.py", line 284, in write_mmap flag = fcntl.fcntl(self.bufferfd, F_GETFD) NameError: global name 'F_GETFD' is not defined 05-18 02:05:40.185 [INFO ][slatefish :44 ] Hi, this is message from SlateFish: 1400349940.184923 05-18 02:05:40.185 [INFO ][systemtask :64 ] Task: logcleaner added 05-18 02:05:40.185 [INFO ][systemtask :68 ] Task: taskcleaner added 05-18 02:06:40.303 [INFO ][mirror.handler :85 ] Got signal SIGHUP, start reloading... 05-18 02:06:40.303 [INFO ][mirror.scheduler:353 ] Stopping running tasks... 05-18 02:06:40.304 [INFO ][mirror.scheduler:358 ] Clearing old data... 05-18 02:06:40.304 [INFO ][mirror.scheduler:364 ] Reloading new configs... 05-18 02:06:40.306 [INFO ][mirror.handler :40 ] Got signal SIGINT, exiting... 05-18 02:06:40.307 [INFO ][mirror.scheduler:294 ] Stopping mirror scheduler 05-18 02:06:40.307 [INFO ][mirror.handler :70 ] Bye bye... :)
这个bug好像是新引入的,用早些时候的一个版本没问题。
#无此问题的某版本最近一条commint。 commit 254beba2317b4ae86756f392ab2287db12ac30fa Author: ideal <idealities@gmail.com> Date: Sun Apr 6 20:22:58 2014 +0800 fix bug
嗯,是的,已经改了。囧,是少写了个fcntl。 多谢~
这个bug好像是新引入的,用早些时候的一个版本没问题。