Page MenuHomePhabricator

D20054.diff
No OneTemporary

D20054.diff

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

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)

Event Timeline