Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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

by moritz (Cardinal)
on Aug 21, 2008 at 18:18 UTC ( [id://705923] : note . print w/replies, xml ) Need Help??

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

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).

Replies are listed 'Best First'.
Re^4: using $SIG as an IPC interrupt?
by bobbob (Acolyte) on Aug 21, 2008 at 18:22 UTC
    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'
        Thanks. Do you by any chance have an example for how to generate the SIGUSR signal from the c program?