Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15332231
D20054.id47902.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.id47902.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
Sat, Mar 8, 4:52 PM (3 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7383344
Default Alt Text
D20054.id47902.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