Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: (Perl6) Groking Continuations (_!)

by Dominus (Parson)
on Apr 09, 2003 at 17:36 UTC ( #249318=note: print w/replies, xml ) Need Help??


in reply to Re^3: (Perl6) Groking Continuations (_!)
in thread (Perl6) Groking Continuations

Says tye:
Too bad Unix didn't provide an efficient way to save/restore chdir context (based on i-node instead of on a path string).

Many unixes now provide an fchdir call which does what you want; instead of a pathname, it accepts an open file descriptor and then sets the cwd to the directory pointed to by the descriptor. To save the old cwd, you simply open the current directory. After you've done chdir, you can fchdir to the descriptor returned by the open when you want to go back.

You can't have a system call that simply accepts an i-number, because such a call would bypass the filesystem's permission controls.

--
Mark Dominus
Perl Paraphernalia

Replies are listed 'Best First'.
Re^2: (Perl6) Groking Continuations (_!)
by Aristotle (Chancellor) on Apr 13, 2003 at 18:04 UTC
    Well, you probably could, but that would hardly be any more efficient than using a string path (trace up the .. chain instead of down the path of given directory names).

    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://249318]
help
Chatterbox?
[vedagiri89]: that one is done by system team from the tar i guess
[hippo]: Really? Not using the one from the CentOS repository? Perhaps that's the problem.
[vedagiri89]: i need when this issue will come usually
[hippo]: How about mod_perl? Was that installed from the CentOS packge or from source?
[vedagiri89]: from the source
[hippo]: But APR.pm is under vendor_perl in your error message so you are mixing up modules installed from the packager and by hand. That's rarely a good plan.
[vedagiri89]: the prm is..works fine if i run file directly..not working if i run through apache http file
[hippo]: Environments differ.
[vedagiri89]: so, how to fix that differ

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2018-06-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (113 votes). Check out past polls.

    Notices?