Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1728
(An Untitled Masterwork)
Active
Public
Actions
Authored by
hach-que
on Feb 25 2015, 10:27 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F319346: file
Feb 25 2015, 10:27 PM
2015-02-25 22:27:11 (UTC+0)
Subscribers
None
<?php
/**
* Daemon which spawns SSH to the local machine, used for ensuring.
*/
final
class
PhutilProcessSSHDaemon
extends
PhutilTortureTestDaemon
{
protected
function
run
()
{
$root
=
phutil_get_library_root
(
'phutil'
);
$root
=
dirname
(
$root
);
execx
(
'ssh localhost -p 24 "sleep 120"'
);
}
}
Event Timeline
hach-que
edited the content of this paste.
(Show Details)
Feb 25 2015, 10:27 PM
2015-02-25 22:27:11 (UTC+0)
hach-que
updated the paste's language from
autodetect
to
autodetect
.
hach-que
mentioned this in
D11889: Only SIGINT the daemon itself, not its entire process group
.
Feb 25 2015, 10:32 PM
2015-02-25 22:32:43 (UTC+0)
Log In to Comment