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

Re^2: Why is perl not honouring SIGSTOP?

by PerlOnTheWay (Scribe)
on Mar 10, 2012 at 04:19 UTC ( #958832=note: print w/ replies, xml ) Need Help??


in reply to Re: Why is perl not honouring SIGSTOP?
in thread Why is perl not honouring SIGSTOP?

I'm on Ubuntu . Isn't OS supposed to STOP the process for SIGSTOP(the process is put in a TASK_STOPPED state)?

The SIGKILL and SIGSTOP signals cannot be explicitly ignored or caught, and thus their default actions must always be executed. Therefore, SIGKILL and SIGSTOP allow a user with appropriate privileges to destroy and to stop

seems actually not a perl question, but anyone knows the reason?


Comment on Re^2: Why is perl not honouring SIGSTOP?
Re^3: Why is perl not honouring SIGSTOP?
by Marshall (Prior) on Mar 10, 2012 at 04:29 UTC
    SIGSTOP (19) - Stop process is an OS function. Perl plays (normally) no role in this. Of course it is possible to make a program do things like my text editor which interprets CTL-Z to mean "undo the last change". But basically, no Perl doesn't have anything to do with that.
Re^3: Why is perl not honouring SIGSTOP?
by Marshall (Prior) on Mar 10, 2012 at 05:14 UTC
    Well, I don't know but there may some strange behavior related to how Ubuntu handles sleep? If you put your Perl program into an tight loop, or have it do an blocking IO operation or have it read a big disk file line by line, I betcha CTL-Z will do something. Is this a real application question or just intellectual curiosity? Perl itself is not going to do anything with CTL-Z without a lot more code than 2 lines!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (15)
As of 2014-10-20 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (76 votes), past polls