Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: global name 'F_GETFD' is not defined #2

Closed
fangpsh opened this issue May 17, 2014 · 1 comment
Closed

NameError: global name 'F_GETFD' is not defined #2

fangpsh opened this issue May 17, 2014 · 1 comment

Comments

@fangpsh
Copy link

fangpsh commented May 17, 2014

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


ideal added a commit that referenced this issue May 18, 2014
@ideal
Copy link
Owner

ideal commented May 18, 2014

嗯,是的,已经改了。囧,是少写了个fcntl。
多谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants