
mhx
Enthusiast
/ Moderator
Nov 5, 2001, 10:01 PM
Post #6 of 6
(562 views)
|
So, now we know at least that this isn't a Perl question. As always, Google was very helpful in finding an answer. The strace command traces the system calls a process makes. So, when a process opens a file, you'll see a line like
open("/dev/null", O_RDONLY) = 3 This has nothing to do with Perl, except for the fact that sometimes you open files in Perl scripts, too. The mysterious looking =3 at the end of line isn't that mysterious if you know that the output isn't supposed to be Perl code. It's simply the return value of the system call. Now, what made even me believe in the first place that your snippet could be Perl code was the use of [ ] (reference to empty array):
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 But what looks like an empty array is in fact a bit field with no bits set at all. If you had some bits set, this might have looked like
rt_sigprocmask(SIG_SETMASK, [CHLD TTOU], NULL, 8) = 0 And this is a syntax error in Perl. Hope this helps. -- Marcus
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= ($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"
|