Re: background - "stopped" how to kill!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Russell,

the test code is::
#!/usr/bin/php
<?php
/*

    parent.php

    /ycrawl/dcrawl/run/yolo-master/parent.php

    test to see about the "&" background process
*/

print "start \n";
sleep(5);

print "stop \n";

$t=posix_getpid();
//system("kill -9 ".$t);
posix_kill($t, 9);
exit();

?>


As you can see, there's nothing special about this. And yeah, when
runs as foo.php & <<  it shows up in the procTBL as "T" in the status.

There are no filedescriptors in the test.






On Fri, Jun 6, 2014 at 1:48 PM, Russell Miller <duskglow@xxxxxxxxx> wrote:
>
> On Jun 6, 2014, at 10:44 AM, bruce <badouglas@xxxxxxxxx> wrote:
>>
>> My question, is how the heck can I implement something within the test
>> foo.php to have it die/be removed from the procTBL when it dies..
>
> If it's "stopped" that means it's not running, it's probably got an fd to the tty open
> and is listening for input.  Not designed to run in the background.
>
> "kill %1" might work to kill it.
>
> --Russell
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux