×

Discussion Board

Results 1 to 3 of 3

Thread: fcntl

  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    fcntl

    Hi,

    I'm porting a perl cgi script that runs on a regular linux platform to python on MWS.

    I ported the perl to python on linux and that now works, but when I move it to MWS, it fails with :

    Code:
    ImportError: No module name fcntl
    I use fcntl in order to lock a file so that more than one instance of the server cannot append to the file at the same time.

    It seems like this would be basic functionality, so I'm figuring there must be some way of doing what I want.

    Any clues?

    Max.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: fcntl

    Quote Originally Posted by davidmaxwaterman View Post
    I use fcntl in order to lock a file so that more than one instance of the server cannot append to the file at the same time.
    Actually you don't need to do that as the server runs in single-process, single-thread mode.

    Johan

  3. #3
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    Re: fcntl

    Quote Originally Posted by jhnwkmn View Post
    Actually you don't need to do that as the server runs in single-process, single-thread mode.

    Johan
    Oh, cool

    Thanks,

    Max.

Similar Threads

  1. fcntl and F_SETLK
    By jhnwkmn in forum Open C/C++
    Replies: 0
    Last Post: 2007-04-17, 13:09
  2. SDK Bug: fcntl missing in library
    By phaynes in forum Symbian C++
    Replies: 7
    Last Post: 2006-05-30, 09:19
  3. fcntl - Linking problem
    By pankaj-jataayu in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-05-18, 12:27
  4. fcntl missing in the estlib library ??
    By raj_ccna in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-08-17, 09:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •