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

Re^2: using $SIG as an IPC interrupt?

by bobbob (Acolyte)
on Aug 21, 2008 at 18:07 UTC ( [id://705915] : note . print w/replies, xml ) Need Help??

in reply to Re: using $SIG as an IPC interrupt?
in thread using $SIG as an IPC interrupt?

Thanks for the response. I am also a little concerned though that some other programs on the same machine could also be using these signals (or some programs in the future).

Replies are listed 'Best First'.
Re^3: using $SIG as an IPC interrupt?
by moritz (Cardinal) on Aug 21, 2008 at 18:18 UTC
    Sending signals is restricted by the operating system - so no random user can send these signals, but only root and the user that your program runs under. (At least on unixish systems).
      I'm not sure I understand - are you saying there is a separate set of SIG signals per user? ie. that if an application running as root generates a SIGUSR1 it will be ignored by my perl code?

      (This is running on Solaris BTW)


        I'm saying that if your app runs as user $foo, and another program runs as user $bar, that other program can't send signals to your program, except when $foo eq $bar or $bar eq 'root'