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

on reading procfs file on Linux #5087

Closed
p6rt opened this issue Jan 26, 2016 · 7 comments
Closed

on reading procfs file on Linux #5087

p6rt opened this issue Jan 26, 2016 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jan 26, 2016

Migrated from rt.perl.org#127370 (status was 'resolved')

Searchable as RT127370$

@p6rt
Copy link
Author

p6rt commented Jan 26, 2016

From cuong.manhle.vn@gmail.com

Hi,

I tried myself to read content of procfs files in Linux with stable perl6
compiler but it seems to be broken​:

perl6 -pe '' /proc/$$/statm

went into an infinitive loop.

It doesn't happen Perl 5 (or Ruby, Python or all POSIX shells I tried)​:

perl -pe '' /proc/$$/statm

Is this an intentional behavior?

Thanks

@p6rt
Copy link
Author

p6rt commented Jan 26, 2016

From roam@ringlet.net

На пон яну 25 22​:57​:52 2016, cuong.manhle.vn@​gmail.com написа​:

Hi,

I tried myself to read content of procfs files in Linux with stable perl6
compiler but it seems to be broken​:

perl6 -pe '' /proc/$$/statm

went into an infinitive loop.

FWIW, yes, I noticed this too when porting the trivial ethstats utility to Perl 6 -
https://gitlab.com/ethstats/ethstats/blob/master/ethstats.p6 around line 183;
the only way I could check that I'd read all of /proc/net/dev was to look for
a successful zero-character read. I thought I'd report this, but I forgot...
thanks for bringing it up!

G'luck,
Peter

@p6rt
Copy link
Author

p6rt commented Jan 26, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 3, 2016

From cuong.manhle.vn@gmail.com

This issued was fixed in MoarVM/MoarVM#388

Cuong Manh Le
https://cuonglm.xyz

@p6rt
Copy link
Author

p6rt commented Sep 9, 2016

From @zoffixznet

Tests added in Raku/roast@180694deff

@p6rt
Copy link
Author

p6rt commented Sep 9, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Sep 9, 2016
@p6rt
Copy link
Author

p6rt commented Sep 16, 2016

From cuong.manhle.vn@gmail.com

Hi, this test​:

Raku/roast@180694deff

does not seems to be needed. I have made the test for this fix in​:

Raku/roast@2103b87

I forgot to post the test PR when it was merged, sorry for this
in-convenience.

Bests.

Cuong Manh Le
https://cuonglm.xyz

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

No branches or pull requests

1 participant