Nov 5, 2001, 10:01 PM
Post #6 of 6
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
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.
open("/dev/null", O_RDONLY) = 3
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):
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_BLOCK, NULL, , 8) = 0
And this is a syntax error in Perl.
rt_sigprocmask(SIG_SETMASK, [CHLD TTOU], NULL, 8) = 0
Hope this helps.