Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14309111
D20054.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
828 B
Referenced Files
None
Subscribers
None
D20054.diff
View Options
diff --git a/src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php b/src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php
--- a/src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php
+++ b/src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php
@@ -21,8 +21,13 @@
if ($language) {
$language = $this->getPygmentsLexerNameFromLanguageName($language);
+
+ // See T13224. Under Ubuntu, avoid leaving an intermedite "dash" shell
+ // process so we hit "pygmentize" directly if we have to SIGKILL this
+ // because it explodes.
+
$future = new ExecFuture(
- 'pygmentize -O encoding=utf-8 -O stripnl=False -f html -l %s',
+ 'exec pygmentize -O encoding=utf-8 -O stripnl=False -f html -l %s',
$language);
$scrub = false;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 12:45 AM (9 h, 6 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6905219
Default Alt Text
D20054.diff (828 B)
Attached To
Mode
D20054: Use "exec" to skip the Dash intermediate shell for "pygmentize"
Attached
Detach File
Event Timeline
Log In to Comment